[R] list.files wildcard

About this list Date view Thread view Subject view Author view

From: David White (dwhite@ling.ohio-state.edu)
Date: Fri 27 Apr 2001 - 05:34:20 EST


Message-ID: <Pine.GSO.4.04.10104261526530.22179-100000@julius.ling.ohio-state.edu>


Hello all,

I have a simple question:

I have filenames that look like these:
 "n031ku09.10msmeanc" "n031ku10.10msmeanc" "n031ku11.10msmeanc"
[22] "n031ku12.10msmeanc" "n031ti01.10msmeanc" "n031ti02.10msmeanc"

I also have a set of the same without the "c" at the end.

When I run list.files(".", pattern="*ku[01-30].meanc"), I get no result.
I'm guessing that what I have here a problem with "." as a wildcard or
metacharacter. How do I get it to read as a literal in that expression?

TIA,

David

S. David White
sdavidwhite@bigfoot.com
Columbus, Ohio

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:39 EST