powered by
dummy(x, data = NULL, drop = TRUE)
data(ltaylor96) dummy(ltaylor96$year)
Run the code above in your browser using DataLab