calculate_standardized: Calculate Standardized Indices
Description
Helper function to calculate standardized indices based on a reference period.
Usage
calculate_standardized(df, freq, base_range)
Value
Data frame with standardized values.
Arguments
- df
Data frame. Input data with Date and Value columns.
- freq
Character. Frequency of calculation, either "monthly" or "seasonal".
- base_range
Numeric vector. Base range years.