Message-ID: <18157ABC-62DF-4A18-BB4F-5A2ECA238C11@dcn.davis.ca.us>
Date: 2022-03-23T19:31:46Z
From: Jeff Newmiller
Subject: print only a few lines of an object
In-Reply-To: <BL0PR01MB4036A8E9BB336EC81FBDB8BAFA189@BL0PR01MB4036.prod.exchangelabs.com>
Sure. Re-define the print method for those objects. Can't say I recommend this, but it can be done.
On March 23, 2022 11:44:01 AM PDT, Naresh Gurbuxani <naresh_gurbuxani at hotmail.com> wrote:
>In an R session, when I type the name of an object, R prints the entire object (for example, a 20000 x 5 data.frame). Is it possible to change the default behavior so that only the first five and last five rows are printed?
>
>Similarly, if the object is a 20000 x 200 matrix, the default behavior will be to print first five and last five columns, combined with first five and last five rows.
>
>Thanks,
>Naresh
>______________________________________________
>R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
>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.
--
Sent from my phone. Please excuse my brevity.