Skip to contents

Returns the metadata recorded by nis_cost() or nis_design() when cost adjustment was requested. Data frame operations may drop custom attributes; call this on the direct nis_cost() result or on the survey design returned by nis_design().

Usage

nis_cost_provenance(.data)

Arguments

.data

A data frame returned by nis_cost() or a survey design returned by nis_design().

Value

A list describing the charge and CCR fields, CPI-U source and base year, annual multipliers, counts of invalid CCR and of missing or invalid charges, and output meanings. Returns NULL when no cost adjustment provenance is present.

Examples

charges <- nis_open(nis_example(years = 2019)) |>
  dplyr::select(YEAR, TOTCHG, CCR_NIS) |>
  dplyr::collect() |>
  nis_cost(dollars = 2024)
nis_cost_provenance(charges)$multipliers
#>   year multiplier
#> 1 2019   1.226992