R/subtotals-and-headings.R, R/summary-insertions.R
makeInsertion.RdThe Crunch API expects that Subtotals, Headings, and
other insertions all have the same shape. Before sending insertions to the
server, we need to call makeInsertion on any insertions to make sure they
are proper Insertions. This process sometimes requires a variable's
categories object (e.g. in order to convert from category names to category
ids)
The Crunch API expects that Subtotals, Headings, and
other insertions all have the same shape. Before sending insertions to the
server, we need to call makeInsertion on any insertions to make sure they
are proper Insertions. This process sometimes requires a variable's
categories object (e.g. in order to convert from category names to category
ids)
# S4 method for class 'Subtotal'
makeInsertion(x, var_items, alias)
# S4 method for class 'Heading'
makeInsertion(x, var_items, alias)
# S4 method for class 'Insertion'
makeInsertion(x, var_items, alias)
# S4 method for class 'Subtotal'
makeInsertion(x, var_items, alias)
# S4 method for class 'Heading'
makeInsertion(x, var_items, alias)
# S4 method for class 'Insertion'
makeInsertion(x, var_items, alias)
# S4 method for class 'SummaryStat'
makeInsertion(x, var_items, alias)an object the is a child of Insertion (e.g.
Subtotal, Heading)
Either categories (from categories(variable)) or subvariables
(from subvariables(variable)) to used by
makeInsertions to make Insertions from a child object (e.g. Subtotal or
Heading).
The alias of the variable the insertion is being added to, only needed for MR insertions.
an Insertion object
an Insertion object