
Apply baseline index to a trend summary
apply_baseline_index.RdRescales value so the earliest observation equals 100. When a grouping
column is supplied the rescaling is applied independently within each group.
Arguments
- data
Data frame with
ref_dateandvalue, as returned bycompute_trend_summary().- group_col
Character. Column to group by, or
"ref_date"for no grouping.