wpa
wpa copied to clipboard
Feature request: interval_compare()
Is your feature request related to a problem? Please describe. A flexible function to compare changes period on period across HR Attributes.
Describe the solution you'd like A function that calculates the averages of any wpa metric for a baseline and a follow up period, and their corresponding change. API:
interval_compare( data, hrvar, compvar, before_start = min(as.Date(data$Date, "%m/%d/%Y")), before_end, after_start = as.Date(before_end) + 1, after_end = max(as.Date(data$Date, "%m/%d/%Y")), return = "count" )
Return: Table
group Before After Delta
1 Biz Dev 7.02 7.72 0.70
Return: Plot