So, I have two columns, each with multiple items within them. They are separated by semicolons.
I'd like to turn them into multiple rows, with the new rows matched up based on the order in the original rows.
If I just had one column, I'd use separate_rows, but I don't know how to do it with two columns that need to be matched. It's easier to explain with an example:
Reproducible example:
AU <- c("Ali, PB; Naylor, JC", "Warren, EW; Stephens, D")
EM <- c("PatAllen@fake.com; JNaylor@fake.edu","LizWarren@fake.edu.au; Doug@fake.net")
question <- data.frame(AU, EM)
I'd like the data frame to be this:
1 Ali, PB PatAllen@fake.com
2 Naylor, JC JNaylor@fke.edu
3 Warren, EW LizWarren@fake.edu.au
4 Stephens, D Doug@fake.net