Displaying 1 result from an estimated 1 matches for "99999l".
Did you mean:
999999
2018 Jul 30
2
Code Optimization: print.data.frame + as.data.frame(head(x, n = options("max.print")))
Dear R Developers,
I would like to propose a simple optimization for print.data.frame
base function:
To add: x <- as.data.frame(head(x, n = options("max.print")))
This would prevent that, if for example, we have a 10GB data.frame
(e.g.: Instead of a data.table), and we accidentally print it, the R
Session does not "collapse", forcing us to press ESC or kill the
RSession.