| adjust_factor | R Documentation |
Convert a vector to a factor with specified internal levels (ilevels) and labels (slevels).
adjust_factor(value, ilevels, slevels)
value |
vector to be converted into factor |
ilevels |
order for categorical values |
slevels |
labels for categorical values |
Numeric vectors are first converted to factors with ilevels as the level order, then relabeled to slevels.
returns an adjusted factor
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.