[分享] don't use aggregate

看板R_Language作者 (天)時間10年前 (2015/11/03 09:13), 10年前編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/1
[關鍵字]: 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
attr有時候也很煩
11/03 09:42, 1F
只是有時候不見了更麻煩(嘆氣 ※ 編輯: celestialgod (140.109.73.190), 11/03/2015 09:43:00

11/04 10:05, , 2F
以前不知dplyr data.table都用aggregate...
11/04 10:05, 2F
文章代碼(AID): #1ME0ebEk (R_Language)
文章代碼(AID): #1ME0ebEk (R_Language)