Description Usage Arguments See Also Examples
View source: R/sortDataFrame.R
Sort a data frame by multiple columns or user-specified columns.
1 | sortDataFrame(data, col.names=NULL, decreasing=FALSE)
|
data |
A data frame to be sorted. |
col.names |
User-specified column names to be sorted. |
decreasing |
Sort in descending or ascending order. |
1 2 3 4 5 6 | data('plot.mutation.signature.ex')
sortDataFrame(df)
# Or
sortDataFrame(df, col.names=colnames(df)[1:2,])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.