Sweave and abbreviating output from R
On Apr 11, 2005, at 8:12 AM, Gavin Simpson wrote:
Gabor Grothendieck wrote:
On Apr 11, 2005 7:22 AM, Gavin Simpson <gavin.simpson at ucl.ac.uk> wrote:
Dear List, I'm using Sweave to produce a series of class handouts for a course I am running. The students in previous years have commented about wanting output within the handouts so they can see what to expect the output to look like. So Sweave is a godsend for producing this type of handout - with one exception: Is there a way to suppress some rows of printed output so as to save space in the printed documentation? E.g
<snip>
Any thoughts on this?
Maybe you could use head(rnorm(100)) instead. Check ?head for other arguments.
Any thought you would want to locally modify the print methods for object of interest? I haven't tried it, but it might allow you to treat "large objects" like matrices, long vectors, and data.frames differently than objects like model.fits, etc. Sean