[R] piped output in scan?

Thomas Lumley tlumley at u.washington.edu
Mon May 28 20:46:08 CEST 2001


On Mon, 28 May 2001, Peter Whiting wrote:

> 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")
>

Look at the examples in help(file), which seem to be similar to what you
want.

	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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