[R] process all files ending in *.dat
Thomas Lumley
tlumley at u.washington.edu
Mon Aug 13 18:59:58 CEST 2001
On 13 Aug 2001, Peter Dalgaard BSA wrote:
> Paul E Johnson <pauljohn at ukans.edu> writes:
>
> > I tried
> > mydat<-system("ls *.dat")
> > but mydat does not catch the return.
> > Thanks for your many helps in the past...
>
> You might want to read the help page for system() with some attention
> to the "intern" argument...
Or just use the list.files() function, which is portable across operating
systems.
-thomas
Thomas Lumley Asst. Professor, Biostatistics
tlumley at u.washington.edu University of Washington, Seattle
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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