Hi List,

This is kind of very simple but I am not able to understand how it works...
I have a sentence like "Even in the mid-west spring is hardly for 3 weeks,
while @south the scenario is different."

There are some more example of the same nature and don't know the source
yet.
What i want to do is remove word after "@"..

Solution i think of.

   1. gsub("@$","",string)  or gsub("@\\","",string)
   2. regex

Please provide me some guidance. Since* words after @ may have different
length so need some flexible solution*.

Also sorry don't know how to put it in dput().

Best Regards,


Bhupendrasinh Thakre

*Disclaimer :*

The information contained in this communication is confi...{{dropped:11}}

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to