[prev in list] [next in list] [prev in thread] [next in thread]
List: r-help
Subject: Re: [R] Doubt about pattern
From: Stefano Calza <calza () med ! unibs ! it>
Date: 2004-01-30 11:55:22
Message-ID: 20040130115522.GA2370 () med ! unibs ! it
[Download RAW message or body]
On Fri, Jan 30, 2004 at 12:46:44PM +0100, Peter J. Acklam wrote:
...cut...
>
> Stefano Calza <stecalza@tiscali.it> wrote:
> >
> > dir(pattern="\\.sens+$")
>
> That will find files ending with ".sens", ".senss", ".sensss",
> etc.
>
> To find files ending with ".sens.", the regex is
>
> dir(pattern = "\\.sens\\.$")
>
> If there is a file called just ".sens.", you have to use
> "all.files = TRUE", since files beginning with a "." are
> invisible.
Ops you're perfectly right. Should not put +!!
Thanks,
Ste
> Peter
>
> --
> Peter J. Acklam - pjacklam@online.no - http://home.online.no/~pjacklam
--
Stefano Calza,
Sezione di Statistica Medica
Dip. di Scienze Biomediche e Biotecnologie
Università degli Studi di Brescia - Italy
Viale Europa, 11 25123 Brescia
email: calza@med.unibs.it
Telefono/Phone: +390303717532
Fax: +390303701157
______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic