s-news
[Top] [All Lists]

Re: contain

To: "Kleijn, H.J. (Huub Jan)" <huubjan.kleijn@organon.com>
Subject: Re: contain
From: "Dimitris Rizopoulos" <dimitris.rizopoulos@med.kuleuven.be>
Date: Fri, 7 Oct 2005 16:49:51 +0200
Cc: <s-news@lists.biostat.wustl.edu>
References: <51F7258847455048B583B29A02690D070ED6F0@ossms02.emea.pharma.intra>
look at ?grep(), e.g.,

x <- c("abcde", "absdf", "dfabds", "dsbsssd")
grep("ab", x)
grep("bs", x)


I hope it helps.

Best,
Dimitris

----
Dimitris Rizopoulos
Ph.D. Student
Biostatistical Centre
School of Public Health
Catholic University of Leuven

Address: Kapucijnenvoer 35, Leuven, Belgium
Tel: +32/(0)16/336899
Fax: +32/(0)16/337015
Web: http://www.med.kuleuven.be/biostat/
    http://www.student.kuleuven.be/~m0390867/dimitris.htm


----- Original Message ----- From: "Kleijn, H.J. (Huub Jan)" <huubjan.kleijn@organon.com>
To: <s-news@lists.biostat.wustl.edu>
Sent: Friday, October 07, 2005 4:19 PM
Subject: [S] contain


Dear all,

I have a very trivial question. Is there a function in Splus to identify
in a vector of strings those strings that contain a certain substring.

Kind regards, Huub Jan Kleijn

This message, including attached files, may contain confidential information and is intended only for the use by the individual and/or the entity to which it is addressed. Any unauthorized use, dissemination of, forwarding, disclosure or copying of the information contained herein is not allowed and may lead to irreparable harm and damage for which you may be held liable. If you receive this message in error or if it is intended for someone else please notify the sender by returning this e-mail immediately and delete and destroy the original message and all copies.
--------------------------------------------------------------------
This message was distributed by s-news@lists.biostat.wustl.edu.  To
unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu with
the BODY of the message:  unsubscribe s-news


Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm


<Prev in Thread] Current Thread [Next in Thread>
  • contain, Kleijn, H.J. (Huub Jan)
    • Re: contain, Dimitris Rizopoulos <=