1

I am inspecting research data from NIR spectroscopy. Unfortunately, the output is too big (2048 rows with 15 columns).

Very often, when I try to check a variable like mymodel$loadings my results get truncated.

I understand that I can increase the max output of my terminal, but it's really a hassle to scroll my mouse up from my terminal window. Is there a way I can tell R to pipe the output from my last statement to less or more so I can just scroll using the keyboard?

Tinker
  • 4,165
  • 6
  • 33
  • 72
  • You could use `head()` and `tail()` to see the first and lasts observations. If you try to print a sufficiently long object, you will get a message: `[ reached getOption("max.print") -- omitted 900001 entries ]`. You could also subset (`g[100:105]`). – erasmortg Jul 06 '15 at 08:45
  • Why do you want to look at 2048 rows and 15 columns? Look at data summaries. – Roland Jul 06 '15 at 09:07
  • 1
    possible duplicate of [Equivalent to unix "less" command within R console](http://stackoverflow.com/questions/2842579/equivalent-to-unix-less-command-within-r-console) – Nick Kennedy Jul 06 '15 at 10:33

1 Answers1

0

Are you using a version of RStudio? I would generally look at tables like this in the Data Viewer pane, it allows you to see all data in tables like yours a lot easier.

Access by clicking on the data frame name in top right, or using below in console:

View(dataframe_name)
MarkeD
  • 2,500
  • 2
  • 21
  • 35