Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: interval_compare() #89

Open
moralec opened this issue Mar 1, 2021 · 0 comments
Open

Feature request: interval_compare() #89

moralec opened this issue Mar 1, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@moralec
Copy link
Contributor

moralec commented Mar 1, 2021

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

image

@moralec moralec self-assigned this Mar 1, 2021
@martinctc martinctc changed the title period_compare() Feature request: period_compare() Mar 4, 2021
@martinctc martinctc added the enhancement New feature or request label Mar 4, 2021
@moralec moralec changed the title Feature request: period_compare() Feature request: create_comparison() Jun 8, 2022
@moralec moralec changed the title Feature request: create_comparison() Feature request: interval_compare() Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants