There is a table:
class<-c("A","B", "B","C","D","D","D")
value<-c(1,3,2,5,6,2,5)
df<-cbind(class,value)
For example, the classes "B" and "C" have more than one value. I want to set every value of the class into a separate column. I would like to get the following output:
Could You please help me?
Thanks in advance, Best regards, Inna