R-beta: Re: string containing char..

Martin Maechler (maechler@stat.math.ethz.ch)
Thu, 8 Jan 1998 09:20:51 +0100


Date: Thu, 8 Jan 1998 09:20:51 +0100
Message-Id: <199801080820.JAA05401@sophie.ethz.ch>
From: Martin Maechler <maechler@stat.math.ethz.ch>
To: Kurt.Hornik@ci.tuwien.ac.at
Subject: R-beta: Re: string containing char..

>>>>> "KH" == Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at> writes:

    KH> What is the quickest way of testing whether a string contains a
    KH> certain character?  Thanks -k

length(grep(char, string)) > 0
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._