[R] Sweave and sep = "\t"
Murray Jorgensen
maj at stats.waikato.ac.nz
Tue Feb 24 04:24:27 CET 2004
In my .Snw file:
<<>>=
fyle <- choose.files()
fyle
f <- count.fields(fyle, sep = "\t")
f
@
and in the .tex file:
\begin{Schunk}
\begin{Sinput}
> fyle <- choose.files()
> fyle
\end{Sinput}
\begin{Soutput}
[1] "C:\\Files\\Data\\Cars03\\Rover.txt"
\end{Soutput}
\begin{Sinput}
> f <- count.fields(fyle, sep = " ")
> f
\end{Sinput}
\begin{Soutput}
[1] 8 8 8 8 8
\end{Soutput}
\end{Schunk}
But I want the sep = "\t" to be left as is.
Murray
--
Dr Murray Jorgensen http://www.stats.waikato.ac.nz/Staff/maj.html
Department of Statistics, University of Waikato, Hamilton, New Zealand
Email: maj at waikato.ac.nz Fax 7 838 4155
Phone +64 7 838 4773 wk +64 7 849 6486 home Mobile 021 1395 862
More information about the R-help
mailing list