GetDefaultFormatSpec Method (R)
.GetDefaultFormatSpec(object). Returns the default format for CellText.Number
objects. The argument object is a reference to the associated
BasePivotTable
object. The function returns a single value or a vector with two
elements depending on the type of format. When a single value is returned,
it is the integer code associated with the format. Codes and associated formats are listed
in Table 1. For formats with codes 5
(Mean
), 12
(Variable
), 13
(StdDev
), 14
(Difference
), and 15
(Sum
), the result is a 2-element
vector whose first element is the integer code and whose second element
is the index of the variable in the active dataset used to determine
details of the resulting format. You can set the default format with
the SetDefaultFormatSpec method.- Instances of the
BasePivotTable
class have an implicit default format ofGeneralStat
.
Example
table = spss.BasePivotTable("Table Title",
"OMS table subtype")
cat("Default format: ", BasePivotTable.GetDefaultFormatSpec(table))