[R] Problem with the grep function

aubert@inapg.fr aubert at inapg.fr
Thu Jul 8 09:43:04 CEST 2004


Hi Christian,

It works better now. Thanks a lot.

Julie

At 09:32 08/07/2004 +0200, you wrote:
>Hi Julie,
>
>as I understand your question you only want indices for exact matches to
>"b". This can be achieved using regular expressions (see ?regex)
>
>nom <- c("a","b","ab")
>grep("^b$",nom)
>
>I hope this helps?
>
>Christian




More information about the R-help mailing list