R/alloc_allocate_expenses.R
allocate_expenses.Rd
Allocate expenses
allocate_expenses(dat, costs, weight_variable = c("tiv", "premium"))
data frame with required columns: tiv and allocated
renewal costs list
String: one of c("tiv", "premium") indicating which variable should be used to weight and allocate expenses
c("tiv", "premium")
a tibble