sorting data by variables in R
This question already has an answer here:
为了提高可读性,我建议
sort.airquality <- airquality[with(airquality, order(Ozone, Wind)),]
你要
sort.airquality <- airquality[order(airquality$Ozone, airquality$Wind),]
链接地址: http://www.djcxy.com/p/70854.html
上一篇: 如何订购R中的数据集
下一篇: 按R中的变量排序数据