【发布时间】:2015-06-06 09:56:14
【问题描述】:
dplyr::as.tbl(mtcars) 只占屏幕的 10 行,如下图所示:
可以配置 R 以便如果 tbl_df 可以填充整个 R 窗口而没有任何数据“从窗口掉出”(如 mtcars 的情况),那么 dplyr 将强制 tbl_df填满整个窗口。
所以我希望dplyr::as.tbl(mtcars) 的输出为:
【问题讨论】:
-
根据blog.rstudio.org/2015/01/09/dplyr-0-4-0
options(dplyr.print_max) is now 20, so dplyr will never print more than 20 rows of data (previously it was 100). The best way to see more rows of data is to use View(). -
你可以试试
options(dplyr.print_max = 1e4)