[Rd] Objects and regex (PR#7970)
Rafal Kustra
rafalku at gmail.com
Wed Jun 29 20:34:57 CEST 2005
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 at biostat.ku.dk> wrote:
> rafalku at 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 at biostat.ku.dk) FAX: (+45) 35327907
>
More information about the R-devel
mailing list