dummyvar {echoice2} | R Documentation |
Dummy-code a categorical variable
Description
Dummy-code a categorical variable
Usage
dummyvar(data)
Arguments
data |
one column of categorical data to be dummy-coded |
Value
tibble with dummy variables
Examples
mytest=data.frame(attribute=factor(c('a','a','b','c','c')))
dummyvar(mytest)
[Package echoice2 version 0.2.4 Index]