ãã®ãããããå¦çãã¢ãããã¯å¯ãã«ãªãã®ã§ãdata.tableã使ãå ´åã§ããã¤ãï¼dplyrï¼ã使ã£ã¦ä¸åº¦ã«å®è¡ããã®ã§ã¯ãªãæ·»åè¨æ³ã使ã£ã¦1ã¹ããããã¤é²ãã¦ããã¨ããï¼1è¡ãã¤å®è¡ããå ´åã¯æ·»åè¨æ³ã使ã£ãæ¹ãã³ã¼ãéãå°ãªãã¦æ¸ãï¼ã è¡ã®åé¤ï¼æ½åºï¼ è¡ã®æ½åº è¡ã®ä¸¦ã¹æ¿ãï¼ã½ã¼ãï¼ è¡ã®ä¸¦ã¹æ¿ã å¤æ°ã®å å·¥ï¼ãã¼ã¿ãã¬ã¼ã ï¼data.frameå ±éï¼ æ¨æºåï¼scaleï¼ æå®ããå¤æ°ãæ¨æºåï¼å¹³åï¼ï¼ãåæ£ï¼1ã®ã¹ã±ã¼ã«ã«å§ç¸®ï¼æ¡å¤§ï¼ããã scale()é¢æ°ã使ãã # ãã¼ã¿ãã¬ã¼ã x.dt$purchase_amount <- scale(x.dt$purchase_amount) # data.table x.dt[,purchase_amount := scale(purchase_amount)] è¤æ°åãã¾ã¨ãã¦ããã«ã¯mutate_at()ã使ã£ã¦ x
{{#tags}}- {{label}}
{{/tags}}