Factor | R Documentation |
Factor
Converts to a factor, but retains the label attribute. Automatically combines duplicate
levels, with a warning (factor
instead throws an error).
Factor(x, ...)
x |
A vector of data, usually taking a small number of distinct values. |
... |
Further arguments passed to |
If the variable is already a factor, removes any empty levels
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.