Say for example, I have a character vector
a
[1] “hi come asap, the show is awsome” “I am suffering from cold”
d
[1] “asap” “awsome” “cold” “lol” “rofl”
I should replace any word(from “d”) if found in “a” with empty space. How do I implement in R?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think I understand but could be wrong. You could try:
Yields: