sort_dataframe | R Documentation |
Sort a dataframe by the contents of its row (sort columnwise) or columns (sort row-wise)
sort_dataframe(df, row.or.col = "row", by = 1)
df |
A dataframe or matrix |
row.or.col |
Either "row" or "column" specify what is being sorted |
by |
The name of the column/row to sort by. |
A data frame sorted to specified rows/columns order
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.