I have this dataframe.
dtext <- data.frame(text = c("John Marl","Anna Choi Lo","Erl Con"))
I would like to split it into more than one column using as separation the space between the words and I tried this. data.frame(do.call('rbind', strsplit(as.character(dtext$text),' ',fixed=TRUE))) However this is the output:
X1 X2 X3 John Marl John Anna Choi Lo Erl Con Erl
Here is the expected output
X1 X2 X3 John Marl Anna Choi Lo Erl Con
How can I fix it?