How to sort a column of a data frame(mtcars) in descending order where the column value is greater than 20 in R

前端 未结 0 1477
难免孤独
难免孤独 2021-01-01 14:12

Below script did fetch me the results but it also prints the value of new data frame(cars) created.

mtcars[which(mtcars$mpg>20),]
cars<- mtcars[which(mt         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题