Skip to contents

Create new time unit fields

Usage

mutate_time_vars(
  data,
  unit = unname(time_units),
  input_nm = "period_end_date",
  output_nm = get_unit_labels(unit)
)

Arguments

data

data set containing an input time field

unit

time unit, one of iidda.analysis:::time_units

input_nm

field name in `data` containing input time field

output_nm

field name of newly created time unit field, by default uses get_unit_labels().

Value

all fields in `data` with additional time unit field