The-Strategy-Unit / nhp_evidence_maps

Shiny app: NHP evidence map
https://connect.strategyunitwm.nhs.uk/nhp_evidence_map/
Other
1 stars 0 forks source link

Convert data-raw/ to fct_data.R #72

Closed matt-dray closed 3 months ago

matt-dray commented 3 months ago

Closes #69.

This is an alternative approach to the PR #71 and is what I was thinking of in #69. Happy to talk this through.

Note: the approach to wrangling reviews and studies is almost exactly the same, so the new wrangle_studies() and wrangle_reviews() could be refactored to a single function. I haven't done that here to save time, but it should probably be done so that any future changes to the input dataset will only need one function in fct_data.R to be updated, rather than two.