lineupRanking {lineupjs} | R Documentation |
lineup
helper function for creating a LineUp ranking definition as used by lineup
lineupRanking(columns = c("_*", "*"), sortBy = c(), groupBy = c(), ...)
columns |
list of columns shown in this ranking, besides column names of the given data frame following special columns are available |
sortBy |
list of columns to sort this ranking by, grammar: |
groupBy |
list of columns to group this ranking by |
... |
additional ranking combination definitions as lists ( |
a configured lineup ranking config
include all data frame columns
add multiple support columns (_aggregate, _rank, _selection)
add a column for collapsing groups
add a column for showing the rank of the item
add a column with checkboxes for selecting items
add a column showing the current grouping title
add the specific column
add defined column given as additional parameter to this function, see below
a weighted sum of multiple numeric columns, extras list(weights = c(0.4, 0.6))
minimum of multiple numeric columns
maximum of multiple numeric columns
mean of multiple numeric columns
median of multiple numeric columns
group multiple columns
scripted (JS code) combination of multiple numeric columns, extras list(code = '...')
color a numerical column (column) with the color of a categorical column (categoricalColumn), changed list(column = 'a', categoricalColumn = 'b')
lineupRanking(columns = c("*"))
lineupRanking(columns = c("*"), sortBy = c("hp"))
lineupRanking(
columns = c("*", "sum"),
sum = list(type = "weightedSum", columns = c("hp", "wt"), weights = c(0.7, 0.3))
)