[R] String Manipulation in R

2012-06-12 Thread anjali
Hi ,
Is there any inbuilt functions  to check whether a substring is present in a
string and give the result as boolean 
Thanks 


--
View this message in context: 
http://r.789695.n4.nabble.com/String-Manipulation-in-R-tp4633104.html
Sent from the R help mailing list archive at Nabble.com.

__
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.


Re: [R] String Manipulation in R

2012-06-12 Thread R. Michael Weylandt
grepl

Michael

On Tue, Jun 12, 2012 at 8:51 AM, anjali jeevi...@gmail.com wrote:
 Hi ,
 Is there any inbuilt functions  to check whether a substring is present in a
 string and give the result as boolean
 Thanks


 --
 View this message in context: 
 http://r.789695.n4.nabble.com/String-Manipulation-in-R-tp4633104.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 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.

__
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.


Re: [R] String Manipulation in R

2012-06-12 Thread Jeff Newmiller
?grepl

Note that this function uses regular expressions, in which certain characters 
have special meanings, so depending on what string you are looking for you may 
have to know something about regex patterns to get it to work.
---
Jeff NewmillerThe .   .  Go Live...
DCN:jdnew...@dcn.davis.ca.usBasics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
--- 
Sent from my phone. Please excuse my brevity.

anjali jeevi...@gmail.com wrote:

Hi ,
Is there any inbuilt functions  to check whether a substring is present
in a
string and give the result as boolean 
Thanks 


--
View this message in context:
http://r.789695.n4.nabble.com/String-Manipulation-in-R-tp4633104.html
Sent from the R help mailing list archive at Nabble.com.

__
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.

__
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.


Re: [R] String Manipulation in R

2012-06-12 Thread Rui Barradas

Hello,

Yes, there is. See ?grepl or help('grepl').

Hope this helps,

Rui Barradas

Em 12-06-2012 14:51, anjali escreveu:

Hi ,
Is there any inbuilt functions  to check whether a substring is present in a
string and give the result as boolean
Thanks


--
View this message in context: 
http://r.789695.n4.nabble.com/String-Manipulation-in-R-tp4633104.html
Sent from the R help mailing list archive at Nabble.com.

__
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.



__
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.


Re: [R] String Manipulation in R

2012-06-12 Thread Greg Snow
Or use 'fixed=TRUE' as an argument to grepl to avoid the regular
expression matching (but learning regular expressions will be a useful
tool in the long run).

On Tue, Jun 12, 2012 at 9:15 AM, Jeff Newmiller
jdnew...@dcn.davis.ca.us wrote:
 ?grepl

 Note that this function uses regular expressions, in which certain characters 
 have special meanings, so depending on what string you are looking for you 
 may have to know something about regex patterns to get it to work.
 ---
 Jeff Newmiller                        The     .       .  Go Live...
 DCN:jdnew...@dcn.davis.ca.us        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
 Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
 /Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
 ---
 Sent from my phone. Please excuse my brevity.

 anjali jeevi...@gmail.com wrote:

Hi ,
Is there any inbuilt functions  to check whether a substring is present
in a
string and give the result as boolean
Thanks


--
View this message in context:
http://r.789695.n4.nabble.com/String-Manipulation-in-R-tp4633104.html
Sent from the R help mailing list archive at Nabble.com.

__
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.

 __
 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.



-- 
Gregory (Greg) L. Snow Ph.D.
538...@gmail.com

__
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.