I want to get the data to be each element separate by ; into a column
I have tried strsplit(df$data) but then I have an unequal length problem I can't solve. I don't know exactly how many elements will be in each row but it should be less then 6. There is a lot of rows and I can't figure out how to deal with the uneven nature of the data and making it fit in a square. Sample data:
data = c("1;Donor;Constituent;Blog Subscriber", "2;Donor;Constituent;Blog Subscriber", "3;Donor;Constituent", "4;Donor;Constituent;Blog Subscriber", "5;Donor;Constituent", "6;NA")
df <- data.frame(data)
messy = strsplit(df$data)
How do I make this so each element separted by a ";" has its own column and row?