6

Simple question but I can't figure it out in RStudio: View(mydata) only gives me 1000 rows.

How can I increase this limit to a number of my choosing? Say, like 25,000?

zx8754
  • 52,746
  • 12
  • 114
  • 209
user798719
  • 9,619
  • 25
  • 84
  • 123

5 Answers5

6

It is not View() but also works in command-line R:

options(max.print=25000)

Printing is set to 25000 lines now.

chakalakka
  • 464
  • 2
  • 9
4

RStudio preview version - Version 0.99.235 has "infinite scroll", so you can view all the data.

enter image description here

zx8754
  • 52,746
  • 12
  • 114
  • 209
3

utils::View(df) will print everything also in Rstudio (Though this is not using the native Rstudio viewer, we will have to wait for the next version of Rstudio for that)

Rasmus Larsen
  • 5,721
  • 8
  • 47
  • 79
1

I don't think it's possible to view more than 1000 rows at a time. However, if your goal is to view data beyond the 1000th row, you can subset your dataset, as follows:

View(df[2000:3000,]) # will show rows 2000-3000
View(df[5000:6000,]) # will show rows 5000-6000
szabad
  • 380
  • 3
  • 10
1
options(max.print=25000)
print.data.frame(<name_of_df>)
lebelinoz
  • 4,890
  • 10
  • 33
  • 56
G. Wrona
  • 11
  • 2