
引用自生信星球
options("repos" = c(CRAN="https://mirrors.tuna.tsinghua.edu.cn/CRAN/"))
options(BioC_mirror="https://mirrors.ustc.edu.cn/bioc/")
install.packages("dplyr")library(dplyr)test <- iris[c(1:2,51:52,101:102),]mutate(test, new = Sepal.Length * Sepal.Width)select(test,c(1,5))或者select(test, Petal.Length, Petal.Width)filter(test, Species == "setosa")arrange(test, Sepal.Length)summarise(test, mean(Sepal.Length), sd(Sepal.Length))count(test,Species)原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。