Skip to contents

update_for_price_year() is an Update function that edits an object, while preserving core object attributes. Specifically, this function implements an algorithm to update for price year. The function returns Data (a tibble).

Usage

update_for_price_year(
  data_tb,
  cost_current_1L_chr = "Cost",
  cost_constant_1L_chr = "Cost",
  price_indices_dbl = numeric(0),
  price_ref_1L_int = 1L,
  time_var_1L_chr = "FiscalYear",
  total_1L_chr = character(0),
  years_are_cols_1L_lgl = F
)

Arguments

data_tb

Data (a tibble)

cost_current_1L_chr

Cost current (a character vector of length one), Default: 'Cost'

cost_constant_1L_chr

Cost constant (a character vector of length one), Default: 'Cost'

price_indices_dbl

Price indices (a double vector), Default: numeric(0)

price_ref_1L_int

Price reference (an integer vector of length one), Default: 1

time_var_1L_chr

Time variable (a character vector of length one), Default: 'FiscalYear'

total_1L_chr

Total (a character vector of length one), Default: character(0)

years_are_cols_1L_lgl

Years are columns (a logical vector of length one), Default: F

Value

Data (a tibble)