[R] R & bash script
Christian Schulz
ozric at web.de
Fri Feb 18 22:52:44 CET 2005
Hi
how is it possible to use more than one command when i'm
didn't want use R CMD BATCH for specific reason?
$ echo "(x<-1:10)" | R --vanilla
works
$ echo "(x<-1:10 ;y<-20:30 ;lm(y ~ x))" | R --vanilla
works not.
Is it further possible using bash variables like $i from a loop
in the bash echo call i.e. dm$x$i$k <-
read.data("dmdata$x$i$k.dat",header=T)
many thanks for a starting point!
christian
More information about the R-help
mailing list