Re: [Rd] Objects and regex (PR#7970)

From: Rafal Kustra <rafalku_at_gmail.com>
Date: Wed 29 Jun 2005 - 18:34:57 GMT

No bug, mystery solved. My fault.

I got 'generateSigma' when trying to match for "^genes?" not "^genes?$".

I keep forgetting '?' stands for '0 or more of prec. char' not for 'any char' as in shell.

best,
rafal


On 26 Jun 2005 20:21:58 +0200, Peter Dalgaard <p.dalgaard@biostat.ku.dk> wrote:
> rafalku@gmail.com writes:
>
> > Full_Name: Rafal Kustra
> > Version: 2.1.0
> > OS: Linux
> > Submission from: (NULL) (64.229.198.89)
> >
> >
> > objects(pattern="^genes?$") returns "generateSigma" among other legal things.
>
> Not on my 2.1.1:
>
> > generateSigma <-1
> > objects(pattern="^genes?$")
> character(0)
> > objects(pattern="^genes?")
> [1] "generateSigma"
>
> So. on what system did this happen?
>
> --
> O__ ---- Peter Dalgaard ุster Farimagsgade 5, Entr.B
> c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
> (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
> ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907
>



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu Jun 30 04:37:27 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:24 GMT