great! Thanks

----- Original Message -----
From: David Winsemius <dwinsemius@comcast.net>
To: rajeshj@cse.iitm.ac.in
Cc: r-help <r-help@r-project.org>
Sent: Wed, 15 Sep 2010 21:12:27 +0530 (IST)
Subject: Re: [R] characters in a string


On Sep 15, 2010, at 11:16 AM, rajeshj@cse.iitm.ac.in wrote:

>
> Hi,
>
> I need to check if a string "a,b,c,d" is delimited by two  
> "" 's as efficiently as possible(I need to do this a lot of  
> times) and return TRUE. Can someone suggest a good technique?

 > txt <- "a,b,c,d"
 >
 > grep("^.+$", txt)
[1] 1

>     [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.

David Winsemius, MD
West Hartford, CT



	[[alternative HTML version deleted]]

