# NOT RUN {
a <- data.frame(V=1:3, color=c("red","green","black"),
temp=c("hot", "cold", "hot"))
b <- factorsplit(a)
# The columns in b are: V, color_red, color_green, color_red, temp
# }
Run the code above in your browser using DataLab