[R] reading in data contingent upon a character at col 1
Trent Piepho
xyzzy at speakeasy.org
Tue Nov 13 23:28:15 CET 2001
On Tue, 13 Nov 2001, Patrick E. McKnight wrote:
> necessarily want to read in. Use of tr, sed, awk or any other unix command
> line utilities would not be suitable for this application.
If you could use awk, it would work just fine for this. Tell R
to open a pipe..
scan( pipe("awk '!/^;/' filename") )
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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