Alexandre CESARI
2010-Dec-13 10:49 UTC
[R] Browsing through a dataframe page by page (like with shell command more)
Hello, I'm looking for an easy way to display a data.frame (or other variables) page by page, similarly to what is possible on a file using the more command in a standard UNIX shell. Any help would be greatly appreciated. Thanks Alexandre [[alternative HTML version deleted]]
Peter Ehlers
2010-Dec-13 13:19 UTC
[R] Browsing through a dataframe page by page (like with shell command more)
On 2010-12-13 02:49, Alexandre CESARI wrote:> Hello, > > I'm looking for an easy way to display a data.frame (or other variables) > page by page, similarly to what is possible on a file using the more command > in a standard UNIX shell. Any help would be greatly appreciated. >How about View(mydata)? See help('View'). Peter Ehlers> Thanks > > Alexandre > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org 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.
Greg Snow
2010-Dec-13 18:48 UTC
[R] Browsing through a dataframe page by page (like with shell command more)
For data frames the best is probably the View function (note capitol V) which opens the data frame in a spreadsheet like window that you can scroll through. For more complicated, list or list-like objects, look at TkListView in the TeachingDemos package. For more general investigation of data objects look at ?page and ?options specifically the "pager" section. -- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.snow at imail.org 801.408.8111> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r- > project.org] On Behalf Of Alexandre CESARI > Sent: Monday, December 13, 2010 3:49 AM > To: r-help at r-project.org > Subject: [R] Browsing through a dataframe page by page (like with shell > command more) > > Hello, > > I'm looking for an easy way to display a data.frame (or other > variables) > page by page, similarly to what is possible on a file using the more > command > in a standard UNIX shell. Any help would be greatly appreciated. > > Thanks > > Alexandre > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org 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.