convert.to.factor | R Documentation |
Convert a numeric variable in to a factor with four levels.
convert.to.factor(x)
x |
a numeric vector |
a factor variable
Tom Elliott
f <- convert.to.factor(runif(100, 0, 10))
levels(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.