Skip to content
Back to formatted view

Raw Message

Message-ID: <4A0833CD.6030205@stats.uwo.ca>
Date: 2009-05-11T14:18:53Z
From: Duncan Murdoch
Subject: Searching within a ch. string
In-Reply-To: <23484010.post@talk.nabble.com>

On 5/11/2009 10:07 AM, RON70 wrote:
> Hi all, is there any function to find some words in a character-string? For
> example suppose the string is : "gdfsa-sdhchc-88", now I want to find
> whether this string contains "sdhch". Is there any R function to do that?

See ?grep.  There are several functions described there, with different 
outputs.

Duncan Murdoch