[R] text matching
taquito2007 at gmail.com
Tue Sep 20 06:03:17 CEST 2011
The "str_locate" function instringr package may do what you are looking for.
Hope this link will help...
On Mon, Sep 19, 2011 at 7:15 PM, SNV Krishna <krishna at primps.com.sg> wrote:
> Hi All,
> I have a character vector by name tickers
> 1 ADARSHPL.BO
> 2 AGR.V
> 3 AGU
> 4 AGU.TO
> 5 AIMCO.BO
> 6 ALUFLUOR.BO
> 7 AMZ.V
> 8 AVD
> 9 ANILPROD.BO
> 10 ARIES.BO
> I would like to extract all elements that has ".BO" in it. I tried
> Error: '\.' is an unrecognized escape in character string starting "\."
>  1
> Could any one please guide me on this. Many thanks for the help
> Best Regards,
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help