| sort_by | R Documentation | 
data.frameSorts a data.frame (ascending by default) based upon variables within the dataset
sort_by(df, vars = NULL, decreasing = FALSE)
| df | data.frame | 
| vars | character vector of variables | 
| decreasing | logical whether sort order should be in descending or ascending (default) order.
Can be either a single logical value (in which case it is applied to
all variables) or a vector which is the same length as  | 
## Not run: 
sort_by(iris, c("Sepal.Length", "Sepal.Width"), decreasing = c(TRUE, FALSE))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.