View source: R/hjelpefunksjoner.R
make_sorters | R Documentation |
For all factor-variables, get the order of levels and use this as input in rpivottable.
make_sorters(df)
df |
ablanor table |
a text string containing a function that defines the sorters for each factor-variable. This should be given in input in the getPivotTable from shiny
df <- data.frame(kjonn = factor(x = c("M", "K", "M", "M"),
levels = c("M", "K"),
ordered = TRUE))
s <- ablanor::make_sorters(df)
s
## Not run:
rpivotTable::rpivotTable(df, sorters = make_sorters(df, sorters =))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.