作者celestialgod (天)
看板R_Language
标题[分享] don't use aggregate
时间Tue Nov 3 09:12:25 2015
[关键字]:
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://webptt.com/cn.aspx?n=bbs/R_Language/M.1446513189.A.3AE.html
1F:推 obarisk: attr有时候也很烦 11/03 09:42
只是有时候不见了更麻烦(叹气
※ 编辑: celestialgod (140.109.73.190), 11/03/2015 09:43:00
2F:推 cywhale: 以前不知dplyr data.table都用aggregate... 11/04 10:05