Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View large data set on the R console

Tags:

r

dataset

Is there any way to view a large data set [1380160 obs. of 44 variables] in full on the R console ?

I have changed the print limit using options(max.print=...), however, I cannot see the full data set, i.e. right from the first row to the last as there is no way to scroll through the data.

like image 332
Anusua Avatar asked Jun 04 '12 15:06

Anusua


1 Answers

Use the View function (note the capitol 'V'), it will open a data frame, matrix, or other table like object in a new window in a spreadsheet style format that can be scrolled for viewing the data (but not editing). This window is independent of the console so you can continue to issue commands without having to close the viewing window (however changes to the data object will not be seend in the viewing window, you will need to close the window and run View again to see the changes).

If you want to edit the data in a spreadsheet like window then use edit or fix (but with these you cannot run other commands until you close the editing window).

Some of the GUI's for R also have tools for viewing or editing data objects with scrolling.

like image 114
Greg Snow Avatar answered Sep 21 '22 03:09

Greg Snow