dplyrãCRANã«ã¢ããããã¦ãã
CRANã¢ããè¨å¿µã¨ãããã¨ã§ä½è
ã®Hadleyãæå±ããRStudioã®ããã°ã«dplyrã«ã¤ãã¦è¨äºãä¸ãã£ã¦ããã
http://blog.rstudio.org/2014/01/17/introducing-dplyr/
æ°ã«ãªã£ãã®ã¯%.%æ¼ç®åã
ã·ã§ã«ã§ããã¨ããã®ãã¤ãã©ã¤ã³ã¿ãããªãã®ãã
%.%ã§å¦çãã¤ãªãã§ããã¨
library(dplyr) iris %.% group_by(Species) %.% summarise(avg = mean(Sepal.Length)) %.% arrange(desc(avg))
ãããªæãã§çµæãã§ãã
Source: local data frame [3 x 2] Species avg 1 virginica 6.588 2 versicolor 5.936 3 setosa 5.006
ãªãã¼ã
追è¨
%.%ãæ°æã¡æªãã¨ãã人ã¯chainã§ã¯ããã¨ããæãããã
chain(iris, group_by(Species), summarise(avg=mean(Sepal.Length)),arrange(desc(avg))) Source: local data frame [3 x 2] Species avg 1 virginica 6.588 2 versicolor 5.936 3 setosa 5.006