Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

r - transform as factor

df$myvar <- as.numeric(as.character(df$myvar))
df$myvar <- as.factor(df$myvar)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #transform #factor
ADD COMMENT
Topic
Name
7+3 =