Re: [R] How to specify multiple regular expressions for pattern argument

2012-05-11 Thread Berend Hasselman
On 11-05-2012, at 20:18, Jun Shen wrote: > Dear list, > > I want to show all the objects starting with "d" and ending with a digit. > How do I specify these conditions in the pattern argument > > I can do one condition but not two > > ls(pattern='^d') > ls(pattern='[[:digit:]]$') > > are work

Re: [R] How to specify multiple regular expressions for pattern argument

2012-05-11 Thread Tyler Rinker
I'm curious about the 'real' answer myself but this would work: ls(pattern='^d')[ls(pattern='^d') %in% ls(pattern='[[:digit:]]$')] Cheers,Tyler Rinker > Date: Fri, 11 May 2012 13:18:59 -0500 > From: jun.shen...@gmail.com > To: r-h...@stat.math.ethz.c

Re: [R] How to specify multiple regular expressions for pattern argument

2012-05-11 Thread Jeff Newmiller
ls(pattern='^d.*[[:digit:]]$') --- Jeff NewmillerThe . . Go Live... DCN:Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. P