Skip to content

First draft completed - suicides #33

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

Merged
merged 3 commits into from
Jan 20, 2025
Merged

First draft completed - suicides #33

merged 3 commits into from
Jan 20, 2025

Conversation

CatReid
Copy link
Collaborator

@CatReid CatReid commented Jan 9, 2025

First draft completed - suicides, styled and rendered.

Converted from HB to LA.

First draft completed - suicides, styled and rendered.

Converted from HB to LA.
@CatReid CatReid requested a review from MikeJohnPage January 9, 2025 12:18
@CatReid
Copy link
Collaborator Author

CatReid commented Jan 9, 2025

@MikeJohnPage A 3-year aggregate wasn't available, so had to make it. When I looked online for this it said 3-year aggregate was just 3-years combined into one number so have gone with this approach, but let me know if i'm wrong and i'll redo it the correct method!

CatReid and others added 2 commits January 15, 2025 14:32
Updated code for suicides. Have gone with 3-year aggregate that takes most recent 3 years and done a mean average.
@MikeJohnPage
Copy link
Member

The method to calculate the three-year aggregate was correct, but please see this commit for an easier way to calculate it which requires much less code by using summarise() from dplyr: d693428

@MikeJohnPage MikeJohnPage merged commit 35ad085 into main Jan 20, 2025
@MikeJohnPage MikeJohnPage deleted the suicides branch January 20, 2025 17:19
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

Successfully merging this pull request may close these issues.

2 participants