unfactor | R Documentation |
Takes an object that is a factor and returns an unfactored vector with the same type by the value removed
unfactor(fctobj)
fctobj |
Factorized object |
Object with factors removed
df = data.frame(
text = c("a", "b", "c"),
float = c( 1 , 2 , 3 ))
df$float = as.factor(df$float)
# This is a factor
df$float
# This is not a factor
unfactor(df$float)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.