I have an object in R called text :
text = c(" - John - Loves Helen - Day 4")
I want to remove the starting space the “-” and the space (i.e) all the special characters before the first word.
ideally I want to the result to be :
John - Loves Helen - Day 4
please take into account that in my real data set the column with text might contain different starting word (i.e different from John).
How can I do that in R ?
1