如何用R增加Jupyter中显示的列数?

Jon*_*han 9 r jupyter

我正在使用带有R内核的Jupyter笔记本.当我打印矩形数据时,例如矩阵,它只显示前10列和后10列:

在此输入图像描述

对于data.frames或HTML表格中打印的任何其他对象,也会发生同样的事情.

如何更改此设置?

Jon*_*han 18

弄清楚了.您可以在options()中设置它们:

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

它们默认为cols = 20和rows = 60.