Scale data frame values to match share targets over any series
ip_shares_transform(datatable, target, series_start = "value", series_target = "share", series_share_of = "share__of", sep = " + ")
datatable | A data frame of values. |
---|---|
target | A data frame of target shares over one or more dimensions. Should include an additional series to specify which series the shares are over. |
series_start | The name of the series in |
series_target | The name of the |
series_share_of | The name of the series in |
sep | Separator string to list multiple series in |
A data frame of target values for use in freeze_slice
in ip_fit
.