Re: [R] Problem with the grep function

From: <aubert_at_inapg.fr>
Date: Thu 08 Jul 2004 - 17:43:04 EST

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



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jul 08 17:59:10 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:46 EST