Stu_stuff <- c(" STUDENTS ARE GOOD STUDENTS, BUT THERE ARE ALSO BAD STUDENTS")
str_replace_all(str_replace("STUDENTS","",Stu_stuff))str_replace(str_replace("STUDENTS","",Stu_stuff))
tried the above but First one replacing only the first occurrence Second one replacing all the occurrences
But would like to keep the first occurrence and replace the rest.
Desired output:
STUDENTS ARE GOOD , BUT THERE ARE ALSO BAD
Any pointers please!