Nests data set in preparation for calibration calculations. Use the group_by parameter to group analyses as appropriate for calibration. Use iso_get_calibration_data to easily pull out columns from the nested data frame in all_data at any point before, during or after calibration.

iso_prepare_for_calibration(
  dt,
  group_by = NULL,
  nest_existing_calibrations = FALSE,
  quiet = default(quiet)
)

Arguments

dt

data table

group_by

what to group by for indidual calibration calculations (use c(...) to select multiple) - set group_by = NULL to avoid grouping

nest_existing_calibrations

whether to nest existing calibrations. This is usually not necessary and only leads to larger data objects. By default, existing calibrations are therefore never included in the nested data set.

quiet

whether to display (quiet=FALSE) or silence (quiet = TRUE) information messages.

Value

a nested data set with the group_by columns out front and the remaining data in a new nested column named all_data

See also