dummyvar {echoice2} | R Documentation |
Dummy-code a categorical variable
dummyvar(data)
data |
one column of categorical data to be dummy-coded |
tibble with dummy variables
mytest=data.frame(attribute=factor(c('a','a','b','c','c')))
dummyvar(mytest)