
Rescale to baseline index
rescale_baseline.RdRescales the value column so that the first observation equals 100,
producing a baseline index. When a grouping variable is present, the
rescaling is applied within each group.
Arguments
- data
A data frame with columns
ref_dateandvalue, as returned bycompute_time_trend().- group_col
Character string naming the grouping column, or
"ref_date"for no grouping.- group
Deprecated. Use
group_colinstead.