Skip to content

Commit 2d8f27d

Browse files
authored
Qualify namespace for epidatasets::state_census
1 parent 71aa520 commit 2d8f27d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

R/flusight_hub_formatter.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
location_to_abbr <- function(location) {
22
dictionary <-
3-
state_census %>%
3+
epidatasets::state_census %>%
44
dplyr::transmute(
55
location = dplyr::case_match(fips, "00" ~ "US", .default = fips),
66
abbr
@@ -10,7 +10,7 @@ location_to_abbr <- function(location) {
1010

1111
abbr_to_location <- function(abbr) {
1212
dictionary <-
13-
state_census %>%
13+
epidatasets::state_census %>%
1414
dplyr::transmute(
1515
location = dplyr::case_match(fips, "00" ~ "US", .default = fips),
1616
abbr
@@ -62,7 +62,7 @@ abbr_to_location <- function(abbr) {
6262
#' geo_value %in% c("ca", "ny", "dc", "ga", "vt")
6363
#' ) %>%
6464
#' select(geo_value, time_value, death_rate) %>%
65-
#' left_join(state_census %>% select(pop, abbr), by = c("geo_value" = "abbr")) %>%
65+
#' left_join(epidatasets::state_census %>% select(pop, abbr), by = c("geo_value" = "abbr")) %>%
6666
#' mutate(deaths = pmax(death_rate / 1e5 * pop * 7, 0)) %>%
6767
#' select(-pop, -death_rate) %>%
6868
#' group_by(geo_value) %>%

0 commit comments

Comments
 (0)