as.factor.numeric | R Documentation |
Turn any vector into numeric categories as.numeric(as.factor(vec))
as.factor.numeric(vec, rename = FALSE, ...)
vec |
vector of factors or strings |
rename |
Rename the vector? |
... |
Pass any other argument. to as.factor() |
as.factor.numeric(LETTERS[1:4])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.