1

I have created an rpivotTable in R and I would like that the different values of the row variable (thousands) to be unselected (or predefine which of them have to be selected) instead of all of them being selected by defect.

nicolaskruchten
  • 26,384
  • 8
  • 83
  • 101

1 Answers1

1

I'm not entirely sure if I've understood the question.

The following code pre-selects elements and variables on the pivottable. Let me know if more details are required.

library(rpivotTable)
rpivotTable(
  Titanic,
  rows = "Survived",
  cols = c("Class","Sex"),
  aggregatorName = "Sum as Fraction of Columns",
  inclusions = list( Survived = list("Yes")),
  exclusions= list( Class = list( "Crew")),
  vals = "Freq",
  rendererName = "Table Barchart"
)
Enzo
  • 2,543
  • 1
  • 25
  • 38