Internal function. Please refer to run_synthetic_forecast documentation.

intern_get_max_time_unit_of_interest(
  df,
  col_unit_name,
  unit_of_interest,
  col_time
)

Arguments

df

Main DataFrame.

col_unit_name

String with column name of the column with the units names.

unit_of_interest

Value of the col_unit_name that is of interest.

col_time

String with the column name of the time column.

Value

Same type as col_time, max value.

Details

Intern function to compute the max time period of the unit of interest.