select(filter(iris,Sepal.Width>3), Sepal.Length,Sepal.Width), Sepal.Length)专题三:条件和循环一...if (i==0) { print('0')} else if (i0,"+",ifelse(i循环语句for循环x...mutate(group = rep(c("control","treat"),each = 3))#加上一列pdat = dat%>% #宽变长函数 pivot_longer(cols = starts_with...apply(test, 2, mean)apply(test, 1, sum)#2.lapply(list, FUN, …) # 对列表/向量中的每个元素(向量)实施相同的操作test 中的每个元素(向量)求均值(试试方差var,分位数quantile)lapply(test,mean)lapply