General Approach to Creating Pivot Tables (R)

The BasePivotTable class provides the means for creating pivot tables that cannot be created with the spsspivottable. Display function. The basic steps for creating a pivot table are:

  1. Create an instance of the BasePivotTable class.
  2. Add dimensions.
  3. Define categories.
  4. Set cell values.

Once a cell value has been set, you can access its value. This is convenient for cell values that depend on the value of another cell. See Using Cell Values in Expressions for more information.