View source: R/01-00-ordinal.R
create a new ordinal variable
1 |
x |
a vector of to be used as values for the ordinal vector. These should be characters for most use cases (but can be other types) |
levels |
vector of of possible values for x; similar to factor levels |
ranks |
a vector of numeric ranks corresponding to each level. |
... |
named vectors with alternative values corresponding to 'levels'. Must each have the same length as levels. Can be accessed with |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.