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?
If you want to read the original article, click here View data frame in r: use of View() function in R. View data frame in r, within RStudio, the View() function in R can be used to call a spreadsheet-style data viewer. When using this function, make sure to use a capital “V”.
As a rule of thumb: Data sets that contain up to one million records can easily processed with standard R. Data sets with about one million to one billion records can also be processed in R, but need some additional effort.
Similar to Excel, with Mac Numbers you'll see warning if you'r file exceeds 1,000,000 rows. This one can be misleading and catch you off-guard if you're dealing with large files. While they do not have a specific row limit, they do enforce a cell limit of 5 million cells.
R provides us nrow() function to get the rows for an object. That is, with nrow() function, we can easily detect and extract the number of rows present in an object that can be matrix, data frame or even a dataset.
It is not View() but also works in command-line R:
options(max.print=25000)
Printing is set to 25000 lines now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With