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

add h2r_aggregate_occurence() function? #7

Open
zackarno opened this issue Oct 28, 2022 · 0 comments
Open

add h2r_aggregate_occurence() function? #7

zackarno opened this issue Oct 28, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@zackarno
Copy link
Contributor

zackarno commented Oct 28, 2022

@twesigye10 and @Dmutai

I added some functions to aggregate settlement data to hexagon by pct here. It doesn't use the {survey} or {srvyr} packages so it's faster.

Note:

  1. It doesn't have the slick ability to take the concatenated select multiple column name that {butter} has .... but this could easily be added. This is not so important for the WASH analysis since we are not batch analyzing as many cols, but might be nice if it's adopted for H2R. I would not prioritize adding this at the moment.
  2. Currently "SL" and "NC" are treated as NA and subset from analysis, but you can modify this and or make an argument so it can be adjusted depending on needs

TODO:

Recommend making a function like h2r_hex_aggregate_occurence() . This would juts return a binary T/F column indicating whether a certain value was reported in any settlement within the hexagon. This would be useful for climatic shocks?

@twesigye10 - do you think you could give this a try? it's basically just a spatial join to the grid and then some {dplyr} manipulation/summarizing

@zackarno zackarno added the enhancement New feature or request label Oct 28, 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

3 participants