[R] parsing dir output for file sizes
Griffith Feeney
gfeeney at hawaii.edu
Tue Jul 11 04:01:21 CEST 2000
I've got an R wrapper around an old DOS program. In the R program I need to
test whether the DOS program failed to produce certain output. This is
indicated by certain text files created by the DOS program being empty.
I can use system(command, intern=TRUE) to get the output of a DOS dir for a
test file, but I'm having trouble parsing this to get the file size.
Is there an R function to find the first occurrence of a character in a
character string (seems there must be, but I'm at a loss to find it)? Or
can anyone suggest a better approach?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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