Skip to content
Back to formatted view

Raw Message

Message-ID: <5b87e98c727f7fba8b2f0ffd7b629a45@mail.nih.gov>
Date: 2005-04-11T12:21:13Z
From: Sean Davis
Subject: Sweave and abbreviating output from R
In-Reply-To: <425A6994.9000308@ucl.ac.uk>

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