CompanyName Desired Output
Abbey Company.Com abbey company
Manisd Company .com manisd company
Idely.com idely
How can i remove .com,while taking care that "com" from company is not effected. I've tried the below code
stopwords = c("limited"," l.c.", " llc","corporation"," &"," ltd.","llp ",
"l.l.c","incorporated","association","s.p.a"," l.p.","l.l.l.p","p.a ","p.c ",
"chtd ","chtd. ","r.l.l.l.p ","rlllp ", "the "," lmft", " inc.", ".com")
file_new1$CompanyName<-gsub(paste0(stopwords,collapse = "|"),"", file_new1$CompanyName)
already refereed to this link
Remove certain words in string from column in dataframe in R