Re: [R] Sweave and the "[" function

From: Berwin A Turlach <berwin_at_maths.uwa.edu.au>
Date: Tue 05 Sep 2006 - 11:22:18 GMT

G'day all,

>>>>> "RD" == Ross Darnell <r.darnell@uq.edu.au> writes:

    RD> Hi Vincent This would seem logical but in this case doesn't     RD> work.
Well, he said that it was untested. :)

Same idea, but with a slightly different implementation (and this one works, I have tested it):

<<>>=

str(women)
women$height
women[,1]
@
\begin{Sinput}
> "["(women,1)
\end{Sinput}
<<echo=FALSE, eval=TRUE>>=
"["(women,1)
@

HTH Cheers,

        Berwin


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue Sep 05 21:28:30 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 07 Sep 2006 - 07:51:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.