Feature request: interval_compare()
@moralec is already working on this.
Since Mar 1, 2021.
- Dominant language
- R
- Stars
- 32
- Forks
- 12
- Avg merge
- 1d 30m
- Merged PRs (30d)
- 2
Description
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

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.