I have this dummy input dataframe. (Input dataframe cannot be changed)
data <- data.frame(c('c(a1, a10)'),
c('c(b1, b10)'),
stringsAsFactors = FALSE)
colnames(data) <- c('A', 'B')
head(data)
# A B
#1 c(a1, a10) c(b1, b10)
And I would like to turn this dataframe to below dataframe. Tidyverse, dplyr approach will be helpful.
# A B
#1 a1 b1
#2 a10 b10