Skip to content

Commit

Permalink
Add function to overwrite read_in_localities
Browse files Browse the repository at this point in the history
This will return the Moray specific lookup
  • Loading branch information
Moohan committed May 6, 2024
1 parent 85f6df7 commit 519ca82
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
read_in_localities <- function(dz_level = FALSE) {
data <- arrow::read_parquet(fs::path(
"/conf/LIST_analytics/West Hub/02 - Scaled Up Work/RMarkdown/Locality Profiles/",
"custom_lookups/forres_and_lossiemouth_april_2022.parquet"
))

if (!dz_level) {
data <- data |>
dplyr::distinct(hscp_locality, hscp2019name, hscp2019, hb2019name, hb2019)
}

return(data)
}

# Aggregate and calculate confidence interval
summarise_iz_to_locality <- function(data, iz_lookup) {
iz_data <- data |>
Expand Down

0 comments on commit 519ca82

Please sign in to comment.