fct | R Documentation |
This function is used to set characteristics of the factors.
fct(.levels = character(), ...)
fct_attrs(.levels = character(), ...)
.levels |
Either a short hand given as either as a single integer (number of levels),
a vector or levels created from |
... |
A name-value pair of attributes. The value must be a scalar and attributed to the whole factor (not individual levels). The values are added as attributes to the output object. |
lvls
fct(c("A", "B"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.