[R] piped output in scan?

Peter Whiting pete at sprint.net
Mon May 28 20:22:37 CEST 2001

is there some way to execute a command and have the output piped to the scan command?

In gnuplot I might do something like: plot "<zcat data.gz|grep 9"

I would like to do something similar in R:

x<-scan(filename="<zcat data.gz|grep 9")

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