fct | R Documentation |
Abbreviated scalar
fct( x = character(), levels, labels = levels, exclude = NA, ordered = is.ordered(x), nmax = NA )
x |
a vector of data, usually taking a small number of distinct values. |
levels |
an optional vector of the unique values (as character strings)
that |
labels |
either an optional character vector of
labels for the levels (in the same order as |
exclude |
a vector of values to be excluded when forming the
set of levels. This may be factor with the same level set as |
ordered |
logical flag to determine if the levels should be regarded as ordered (in the order given). |
nmax |
an upper bound on the number of levels; see ‘Details’. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.