Skip to content

Commit

Permalink
Update call to mappings in get_admissions()
Browse files Browse the repository at this point in the history
* trust_utla_mapping and trust_ltla_mapping replaced by load_mapping()
  • Loading branch information
sophiemeakin committed Sep 23, 2022
1 parent abf11d0 commit 3972b73
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions R/get_admissions.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ get_admissions <- function(keep_vars = "new_adm",
# Check mapping
if (missing(mapping)) {
if (level %in% "utla") {
mapping <- covid19.nhs.data::trust_utla_mapping
mapping <- covid19.nhs.data::load_mapping(scale = "utla",
source = "link")
} else if (level %in% "ltla") {
mapping <- covid19.nhs.data::trust_ltla_mapping
mapping <- covid19.nhs.data::load_mapping(scale = "ltla",
source = "link")
}
}

Expand Down

0 comments on commit 3972b73

Please sign in to comment.