Easiest way to split BeforeSplit
and populate the last 3 columns in my data frame.
I have tried sub
, gsub
, str_split_fixed
, strsplit
. I am having no luck. There is a space between each word in BeforeSplit
.
Thank you!
data in data frame:
BeforeSplit NetID FName LName
dduck Donald Duck dduck Donald Duck
mmouse Mickey mmouse mmouse Mickey Mouse