[分享] don't use aggregate
[關鍵字]:
do not use aggregate
[出處]:
http://www.r-bloggers.com/dont-use-statsaggregate/
[重點摘要]:
Most base R code has problems if there are extra attributes on a numeric
array. So R-stat code tends to have a habit of dropping attributes when it
can. it is odd that the class() is kept (which itself an attribute style
structure) and the timezone is lost, but R is full of hand-specified corner
cases.
所以aggregate會把其他多於的attributes丟掉...
很多事情又要重來一次,例如date的格式之類的
總之,此篇作者非常不推薦aggregate
建議大家愛惜自己生命,使用dplyr XDD
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.109.73.190
※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1446513189.A.3AE.html
推
11/03 09:42, , 1F
11/03 09:42, 1F
只是有時候不見了更麻煩(嘆氣
※ 編輯: celestialgod (140.109.73.190), 11/03/2015 09:43:00
推
11/04 10:05, , 2F
11/04 10:05, 2F
R_Language 近期熱門文章
PTT數位生活區 即時熱門文章
26
152