ip_miss: Compare data frame to target subtotals and calculate absolute...

Description Usage Arguments Value Examples

Description

Compare data frame to target subtotals and calculate absolute error.

Usage

1
2
ip_miss(datatable, target, series_start = "value",
  series_target = "value", series_type = "tar")

Arguments

datatable

A data frame of values previously scaled to targets.

target

A data frame of target subtotals over one or more dimensions.

series_start

The name of the series in datatable to be compared to the target.

series_target

The name of the target series.

Value

A summarized data frame with the same dimensionality as target, with a measurement of error.

Examples

1
2
3
df <- data.frame(x = rep(letters[1:2], 2), y = c(rep("c", 2), rep("d", 2)), value = runif(4))
tar1 <- data.frame(x = letters[1:2], value = c(20, 30))
df %>% ip_scale(tar1) %>% ip_miss(tar1)

ryantimpe/ipfitr documentation built on May 14, 2019, 8:55 a.m.