如何在具有 R 内核的 Jupyter 笔记本中查看数据框的所有行?

How to see all rows of a data frame in a Jupyter notebook with an R kernel?

当我将数据框放入单元格时,它只显示部分行,中间有一个“...”。

编辑:我正在寻找这些 Python notebook 调用的 R 等价物:

import pandas
# "If max_cols is exceeded, switch to truncate view"
pandas.set_option('display.max_columns', 5400)
# "The maximum width in characters of a column"
pandas.set_option('display.max_colwidth', 500)

另见 http://pandas.pydata.org/pandas-docs/stable/generated/pandas.set_option.html

托马斯·克鲁伊弗 says:

I think the options you want are repr.matrix.max.rows and repr.matrix.max.cols

i.e. run

options(repr.matrix.max.rows=600, repr.matrix.max.cols=200)

The defaults are 60 and 20.