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

Christoph M. Friedrich chris at gfm-mbh.de
Fri Dec 3 13:37:40 CET 1999

i want to use R as a filter in a Unix-like way. So i want to start it

producerTool | R --no-save --no-restore --slave < Rscript |

inside the Script i put the results to stdout, works fine, but how to
read in  
from stdin? Its obvious that i have to source the Rscript in a different
way. Any Hints?

My second question is, if there is a possibility to use something like
the Scheme Streams
(see Abelson/Sussman "Structure and Interpretation of Computer
Programs") for input of Huge Amounts of Data, that do not fit in the
main memory, or to reduce the necessary amount of memory? The
i have in mind is: Generate from a training set a linear or other model
and then 
pipe in a file with the test cases (as stream with read.table) and give
the output to stdout. Is there 
any concept in R like this?

Thanks in advance
Christoph M. Friedrich        | mailto:friedrich at computer.org 
Gesellschaft für Modulfermenterbau mbH (GfM mbH) |
Alfred-Herrhausen Str. 44 ; D-58455 Witten, Germany
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