I have the following data.frame:
d.f=data.frame(authors=c("Paco Blue; Eddy Michelt","Sara Robert","Anne Reed; Robert A. McDonald; Alice Brice"),title=c("The live is good","Another","Yesterday"))
authors title
<fctr> <fctr>
Paco Blue; Eddy Michelt The live is good
Sara Robert Another
Anne Reed; Robert A. McDonald; Alice Brice Yesterday
I would like to split the authors field by “;” , that is, get the following data.frame from the previous one:
d.f1<-data.frame(authors=c("Paco Blue","Eddy Michelt","Sara Robert","Anne Reed","Robert A. McDonald","Alice Brice"), title=c("The live is good","The live is good","Another","Yesterday","Yesterday","Yesterday"))
d.f1
authors title
<fctr> <fctr>
Paco Blue The live is good
Eddy Michelt The live is good
Sara Robert Another
Anne Reed Yesterday
Robert A. McDonald Yesterday
Alice Brice Yesterday
Thanks in advance.