Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

How to Convert a Factor in R

> directions <- c("North", "East", "South", "South")
> directions.factor <- factor(directions)
> directions.factor
[1] North East South South
Levels: East North South
Source by www.dummies.com #
 
PREVIOUS NEXT
Tagged: #How #Convert #Factor #R
ADD COMMENT
Topic
Name
2+4 =