microsoft / microsoft/wpa

Feature request: interval_compare()

Open
#89 0 comments 0 reactions 1 assignee View on GitHub

@moralec is already working on this.

Since Mar 1, 2021.

enhancement
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

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.