How do I replace a string in Variable Y which matches with a string (in Variable X) containing a specific word?
I have job description in variable X. In Variable Y I should assign a short title "with one or two words", the object is to get only 5 titles for 30K rows of descriptions.
A code for the wording: replace in data$Y with "Sport" whenever data$Y containing "Ball" Ball could be in uper or lower case.