DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR R
how to convert all columns of a dataframe into factors in r
DF[sapply(DF, is.character)] <- lapply(DF[sapply(DF, is.character)], as.factor)
PREVIOUS
NEXT
Tagged:
#convert
#columns
#dataframe
#factors
ADD COMMENT
Topic
COMMENT
Name
4+1 =
Submit