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 = " + ")

Arguments

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 datatable to be compared to the target.

series_target

The name of the target series containing shares.

series_share_of

The name of the series in target specifying the series that are covered by the shares.

sep

Separator string to list multiple series in series_share_of.

Value

A data frame of target values for use in freeze_slice in ip_fit.