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

dfr*_*kow 5 r jupyter-notebook

当我将一个数据框放入一个单元格时,它只显示一些行,中间有一个"...".

编辑:我正在寻找这些Python笔记本调用的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)
Run Code Online (Sandbox Code Playgroud)

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

dfr*_*kow 14

Thomas Kluyver :

我认为你想要的选项是repr.matrix.max.rows和repr.matrix.max.cols

即运行

options(repr.matrix.max.rows=600, repr.matrix.max.cols=200)
Run Code Online (Sandbox Code Playgroud)

默认值为60和20.