[R] R as Unix-Filter and Streams for DataMining

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri Dec 3 17:48:46 CET 1999

"John D. Barnett" <jbarnett at wi.mit.edu> writes:

> - write a script which reads standard input, and reads a file, and outputs
> both of them to standard output.  (Maybe there's a command that does this
> already; anyone know?)  You could take this one step further and just make
> it a wrapper for R, which would execute any files given on the command
> line and then read from standard input.

produce | cat - script | ...

("-" means stdin)

But a really good solution to this kind of task would probably involve
some kind of stream object inside of R.

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
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