dummy_vars(data.frame("Colour" = factor(sample(c("red",
"azure",
"green",
"white"),
500,
replace = TRUE))))
Run the code above in your browser using DataLab