Skip to content
New issue

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

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

Already on GitHub? # to your account

Add function to read and manipulate the population lookups #2

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

Moohan
Copy link
Member

@Moohan Moohan commented May 14, 2024

The new function get_pop_est() works like the others in that you can do:

get_pop_est(level = "hb")

It will return the Health Board level populations (other levels can be got similarly), possibly it would be worth splitting this into get_hb_pop_est(), get_hscp_pop_est() etc?

There is other optional functionality:

  • Group the data by age group: it uses phsmethods::create_age_groups() to create age groups so they can be customised using that function's parameters. The data will be returned aggregated to the age groups.
  • The data can also be pivoted to return the various population breakdowns (age/age group and sex) as columns instead of rows. There are a number of options for this to chose different breakdowns.

@Moohan Moohan marked this pull request as ready for review June 20, 2024 17:13
@Moohan Moohan changed the title Populations Add function to read and manipulate the population lookups Jun 25, 2024
@Moohan Moohan linked an issue Jul 22, 2024 that may be closed by this pull request
@Moohan Moohan requested review from a team, Nic-Chr and nataliemcafee and removed request for a team October 7, 2024 11:46
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Population Lookups
1 participant