[R] read.csv(stdin(),...) with sweave
ockham@gmx.net
ockham at gmx.net
Thu Oct 28 10:43:23 CEST 2004
hello,
i would like to read in a small amount of csv data directly from a
sweave-enabled latex document. i tried
\begin{Scode}{fig=FALSE,echo=TRUE}
timeval <- read.csv(stdin(),nrows=2)
t1,t2,t3,t4
24.23,26.79,23.47,23.97
\end{Scode}
but apparently the stdin() approach doesnt't work as I get
Writing to file test.tex
Processing code chunks ...
1 : echo term verbatim
Error: chunk 1
Error in parse(file, n, text, prompt) : parse error
Any help very much appreciated...
Greetings
Ockham
--
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!
More information about the R-help
mailing list