Learn R Programming

crunch (version 1.30.4)

subtypeInsertion: Convert from Insertion to Insertion subtypes

Description

Convert from Insertions with only Insertion objects (the only kind that are available from the Crunch API) to the more user-friendly and user-facing Subtotal and Heading object classes.

Convert from Insertions with only Insertion objects (the only kind that are available from the Crunch API) to the more user-friendly and user-facing Subtotal and Heading object classes.

Usage

subtypeInsertions(inserts)

subtypeInsertion(insert)

subtypeInsertions(inserts)

subtypeInsertion(insert)

Value

an Insertions object with members subtyped for subtypeInsertions

or a Subtotal, Heading, or Insertion for subtypeInsertion

an Insertions object with members subtyped for subtypeInsertions

or a Subtotal, Heading, or Insertion for subtypeInsertion

Arguments

inserts

an Insertions object for subtypeInsertions

insert

a single Insertion object for subtypeInsertion