Code Is Poetry

Life is Binary

#factors are used to store categorical data

eyeColor.v <- c("blue","green","brown","yellow","blue","blue","blue")
eyeColor.f <- factor(c("blue","green","brown","yellow","blue","blue","blue")) # 1 2 3 4
eyeColor.f # it will be displayed as different levels of the factor

as.numeric(eyeColor.f)