rankColumns | R Documentation |
Rank columns in a dataset
rankColumns(table, rankingInfo, rankByAscending = TRUE, sort = FALSE)
table |
Data table: data; first column must be identifiers |
rankingInfo |
Data table: boolean values of which rows to rank based on
columns (column names to be ranked must exactly match those available in
argument |
rankByAscending |
Boolean: rank values based on their ascending
( |
sort |
Boolean: sort data based on rank product's rank (if multiple methods are available) or by available ranks |
The rank product's rank is calculated if more than one method is ranked.
Data table with the contents of table
and extra columns with
respective rankings
The first column of data
and rankingInfo
must contain
common identifiers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.