* Sepal.Width)连续的步骤# 1.多次赋值,产生多个变量x1 = filter(iris,Sepal.Width>3)x2 = select(x1, Sepal.Length,Sepal.Width...(),王炸samples = c("tumor1","tumor2","tumor3","normal1","normal2","normal3")k1 = str_detect(samples,"tumor...");k1ifelse(k1,"tumor","normal")k2 = str_detect(samples,"normal");k2ifelse(k2,"normal","tumor")多个条件i...FUN是函数test<- iris[1:6,1:4]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