按调节拆分数据集函数 #数据集flights按year为因子 flights_down=subset(flights,Year==2018) 排序函数 a=sort(a, decreasing = TRUE)#a为因子列,TRUE为降序排列,FLASE为升序排列