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: [EMAIL PROTECTED]                                Fax 7 838 4155
Phone  +64 7 838 4773 wk    +64 7 849 6486 home    Mobile 021 1395 862

______________________________________________
[EMAIL PROTECTED] 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

Reply via email to