How to Increase the Limit for Max.Print in R

how to increase the limit for max.print in R

Use the options command, e.g. options(max.print=1000000).

See ?options:

 ‘max.print’: integer, defaulting to ‘99999’.  ‘print’ or ‘show’
methods can make use of this option, to limit the amount of
information that is printed, to something in the order of
(and typically slightly less than) ‘max.print’ _entries_.

How to increase amount of output retained by R console

you can use rstudioapi::writeRStudioPreference("console_max_lines", <<Number of Lines>>).
<<Number of Lines>> needs to be and Integer so 2000L not 2000.
Then restart RStudio and it will be updated. Be cautious though, this can slow down RStudio a lot for large values.

What is R table function max size?

table function is not limited to 4222 rows. Most likely, it is the printing limit that gives you the trouble.

Try:

options(max.print = 20000)

also, check the "real" number of rows:

tbl <- table(state.division, state.region)
nrow(tbl)


Related Topics



Leave a reply



Submit