How to strsplit different number of strings in certain column by do function
问题 I have a problem with split column value when element of column has different number of strings. I can do it in plyr e.g.: library(plyr) column <- c(\"jake\", \"jane jane\",\"john john john\") df <- data.frame(1:3, name = column) df$name <- as.character(df$name) df2 <- ldply(strsplit(df$name, \" \"), rbind) View(df2) As a result, we have data frame with number of column related to maximum number of stings in given element. When I try to do it in dplyr, I used do function: library(dplyr) df2 <