powered by
Create dummy variables within a tibble
dummify(dat, sel)
tibble with dummy variables
A tibble with the data.
tibble
A character vector with the name(s) of the variables to be dummied.
mytest=data.frame(A=factor(c('a','a','b','c','c')), B=1:5) dummify(mytest,"A")
Run the code above in your browser using DataLab