gpt4 book ai didi

javascript - RPivotTable 能够列出超过允许的数量

转载 作者:搜寻专家 更新时间:2023-11-01 05:10:23 25 4
gpt4 key购买 nike

我创建了一个 rpivottable,我的问题是当它运行时,我无法单击侧边栏上的选项之一来过滤掉特定的因素,因为它说要列出的因素太多了。

可旋转:

enter image description here

然后当我点击 Ad.Source 时,会出现:

enter image description here

这是一个问题,因为如果我想通过单击下拉菜单“表格”来创建折线图,它不会允许我创建图表,因为因素太多,我什至无法过滤它使它像样。

在 R 中创建数据透视表时,有没有办法覆盖它,以便它可以列出无限数量或至少大于 1000 的数量,以便我可以过滤掉多个因素?

谢谢

最佳答案

rpivotTable 是一种 js 库的包装器 pivotTable . Here你可以找到它的所有参数。尝试使用名为 menuLimit 的,例如:

tmp <- rbind(iris, iris)
# Here you have limit on num column:
rpivotTable(cbind(tmp, num = 1:dim(tmp)[1]))
# Here you don't:
rpivotTable(cbind(tmp, num = 1:dim(tmp)[1]), menuLimit = 500)

您还可以在将数据放入 rivotTable 之前过滤数据(或将其分组到更少的桶中)。

关于javascript - RPivotTable 能够列出超过允许的数量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34793135/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com