head(airquality)
s <- split(airquality,airquality$Month)
table(airquality$Month)
lapply(s,function(z) colMeans(z[,c("Ozone","wind","Temp")]))
sapply(s,function(z) colMeans(z[,c("Ozone","wind","Temp")]))
win 10, 3,3,2版本,运行出错
Error in `[.data.frame`(z, , c("Ozone", "wind", "Temp")) : 选择了未定义的列
我也是,为啥啊
我的也是这样,出错了,与大小写没有关系吧?我改成大写也是错误呀
这是咋回事,我也遇到这种情况了。
好了,可以