Skip to content
Back to formatted view

Raw Message

Message-ID: <403AC3EB.40200@stats.waikato.ac.nz>
Date: 2004-02-24T03:24:27Z
From: Murray Jorgensen
Subject: Sweave and sep = "\t"

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