There is a string column like this, in my data frame.
str=as.character(c("M 12; M 13","M 24", NA, "C 12; C 50; C 78"))
no=seq(1:4)
data.frame(no,str)
no str
1 1 M 12; M 13
2 2 M 24
3 3 <NA>
4 4 C 12; C 50; C 78
It has multiple values, separated by ";" symbol. I need to split this into multiple columns (3 columns based on this example) as each column contains only one value of the string. Will this be possible using R?