distinct(test,Species,.keep_all = T)#.keep_all意思是把所有列都保存下来mutate,数据框新增一列mutate(test, new = Sepal.Length...select(filter(iris,Sepal.Width>3), Sepal.Length,Sepal.Width), Sepal.Length)专题三:条件和循环一...("gene"),#我要把哪些列合并成一列 names_to = "gene",#原来的列名变成什么 values_to = "count")#原来的数值变成什么...apply(test, 2, mean)apply(test, 1, sum)#2.lapply(list, FUN, …) # 对列表/向量中的每个元素(向量)实施相同的操作test <- list(...x = 36:33,y = 32:35,z = 30:27);test#返回值是列表,对列表中的每个元素(向量)求均值(试试方差var,分位数quantile)lapply(test,mean)lapply