看板 R_Language 關於我們 聯絡資訊
[關鍵字]: 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
obarisk: attr有時候也很煩 11/03 09:42
只是有時候不見了更麻煩(嘆氣 ※ 編輯: celestialgod (140.109.73.190), 11/03/2015 09:43:00
cywhale: 以前不知dplyr data.table都用aggregate... 11/04 10:05