Re: [R] Can R read data from stdin?

From: Aaron J. Mackey <amackey_at_pcbi.upenn.edu>
Date: Sat 10 Jul 2004 - 07:45:02 EST

On Jul 9, 2004, at 5:41 PM, Hayashi Soichi - shayas wrote:

> Also, is there a similar way I can do read.table from a pipe?

% command | R CMD BATCH --vanilla --slave input.R output

Where input.R is R code that contains a line similar to:

d <- read.table("/dev/stdin")



R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 10 07:54:56 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:54:48 EST