Description Usage Arguments Value
Convert any vector into a factor.
1 |
column |
A vector to convert into a factor. |
levels |
A vector of levels to accept (optional). In the case of a labelled object, this input is completely ignored since levels come from the value labels defined in the labelled object. |
labels |
A vector of labels for the levels (optional). Similarly ignored in the case of a labelled object. |
ordered |
A boolean indicating whether factor is ordered (optional). If levels are specified, it uses the given ordering. If not, uses the order it encounters values in the vector. |
A native R factor, either unordered or ordered.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.