Posts Tagged ‘dataframe’

Sort dataframe by column in R

Sort dataframe by columns in R? We can sort the dataframe by column in R. Sort can be either ascending or descending order. Examples: 1. Create Dataframe df< -data.frame(x=c("A","B","K","M","L"), y=c(4,7,6,9,11), z=c(1,4,2,3,0))

Powered by k2schools