sort.data.frame | R Documentation |
Sort data frame by columns
## S3 method for class 'data.frame'
sort(x, by = 1, decreasing = FALSE)
x |
a data frame |
by |
vector of column indices, sort by first index first, ties are broken using second index etc. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.