最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - RPivotTable being able to list more than allowable amount - Stack Overflow

programmeradmin2浏览0评论

I have created an rpivottable and my problem with it is that when it runs, I can't click on one of the options on the side bar to filter out a specific factor because it says there are too many to list.

Pivottable:

And then when I click on Ad.Source, this es up:

This is a problem, because if I want to create line graphs by clicking on the dropdown menu "Table", it won't allow me to create the graph because there are too many factors and I can't even filter it out to make it presentable.

When creating a pivottable in R, is there a way to override this so that it can list an unlimited amount or atleast an amount higher than 1000, so that I can filter out multiple factors?

Thanks

I have created an rpivottable and my problem with it is that when it runs, I can't click on one of the options on the side bar to filter out a specific factor because it says there are too many to list.

Pivottable:

And then when I click on Ad.Source, this es up:

This is a problem, because if I want to create line graphs by clicking on the dropdown menu "Table", it won't allow me to create the graph because there are too many factors and I can't even filter it out to make it presentable.

When creating a pivottable in R, is there a way to override this so that it can list an unlimited amount or atleast an amount higher than 1000, so that I can filter out multiple factors?

Thanks

Share Improve this question edited May 6, 2020 at 7:51 mnist 6,9841 gold badge19 silver badges43 bronze badges asked Jan 14, 2016 at 15:20 R GuruR Guru 1711 silver badge12 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 10

rpivotTable is sort of a wrapper around a js library pivotTable. Here you can find all its parameters. Try using the one called menuLimit, for example:

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)

You could also filter the data before putting it into rivotTable (or group it into less buckets).

发布评论

评论列表(0)

  1. 暂无评论