Re: [R] A question about default output on the screen

About this list Date view Thread view Subject view Author view Attachment view

From: Prof Brian Ripley (ripley@stats.ox.ac.uk)
Date: Sat 15 May 2004 - 01:48:44 EST


Message-id: <Pine.LNX.4.44.0405141646420.22593-100000@gannet.stats>

But R does not call show() to print, it calls print() unless you have an
object with a formal class. You can try setting a new data.frame method
for print, but an S3 method, please.

On Fri, 14 May 2004, Song Baiyi wrote:

> I got a problem to change the default output on the screen and I use
> Xemacs ESS and R.
>
> When I happen to show a data.frame with thousands of records (type a
> variable name and return), the screen just freeze or keep scrolling for
> minutes, because of the large quantity of records.
>
> Therefore I decide to write a more clever "show" method, which will
> check the number of items to print on the screen. If there are too many
> records, it will just prompt a warning message and return. How can I do
> it? I tried it setMethod("show","ANY",
> function(object){....;standerdGenetic("show");}), but it did not work.
>
> Can anyone give me some ideas?

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________ R-help@stat.math.ethz.ch 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


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:10 EST