sort dataframe row R code example
Example 1: descending order a list in r
x_sorted = sort(x, decreasing = FALSE, na.last = NA, ...)
Example 2: r sort data frame by one column
population[order(population$age),]
x_sorted = sort(x, decreasing = FALSE, na.last = NA, ...)
population[order(population$age),]