dummify {echoice2} | R Documentation |
Create dummy variables within a tibble
dummify(dat, sel)
dat |
A |
sel |
A character vector with the name(s) of the variables to be dummied. |
tibble with dummy variables
mytest=data.frame(A=factor(c('a','a','b','c','c')), B=1:5)
dummify(mytest,"A")