Description Usage Arguments Examples
Turns factors into numerics.
1 | factorToInteger(factors = NULL, intCheck = TRUE)
|
factors |
a vector of factors |
intCheck |
samples elements from factors to determine whether or not
they are whole numbers. If they are not whole numbers, factorToNumeric is
used instead and a warning shows up. Default is |
1 2 | factors <- factor(c(1,2,3,4,5))
factors <- factorToInteger(factors)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.