dummyvar | 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.