[R] list.files wildcard

David White dwhite at ling.ohio-state.edu
Thu Apr 26 21:34:20 CEST 2001

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?



S. David White
sdavidwhite at 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 at stat.math.ethz.ch

More information about the R-help mailing list