I have a good understanding of how I would do this in another computer language, but am having trouble using the dplyr package in R to accomplish this task. I have a tbl dataset that has a column of data, Dip1, that contains strings with names of banks separated by semicolons. Example:
Number Dip1
1 Goldman Sachs; Morgan Stanley
2 UBS; Wells Fargo; Wachovia
3 Bank of America
4
How can I use dplyr to split the strings of the column by the ";"? This is intuitive in other languages by indexing the column and iterating through the rows and splicing by ";", but I am not sure if iteration is needed in this case using dplyr. Thank you.