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

Write compare_series() function #55

Open
andrew-edwards opened this issue Apr 17, 2024 · 1 comment
Open

Write compare_series() function #55

andrew-edwards opened this issue Apr 17, 2024 · 1 comment
Assignees

Comments

@andrew-edwards
Copy link
Member

andrew-edwards commented Apr 17, 2024

Aims:

  • easily compare and plot values for two time series for the overlapping years
  • ideally work across different types of data; could detect the class and then wrangle the data as necessary
  • potentially expand to more than two series, so maybe do compare_two_series() first. Maybe have the wrangling as helper files.

Start with compare-npi-alpi.R code that I just wrote, based on Bridget's question.

@andrew-edwards andrew-edwards self-assigned this Apr 17, 2024
@cgrandin
Copy link
Contributor

See my comment in #50, you could do a similar thing to have a helper function for each type that puts them into a standardized format, so that you don't end up with one monstrous function that tries to do that with a ton of 'if' statements. Will save you a lot of debugging time down the road if you have small, simple functions of which likely only one will break at a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants