Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

fixing non-us issue with fips #464

Open
wants to merge 1 commit into
base: inference
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion R/scripts/create_seeding.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ if(is_US_run){
## Check some data attributes:
## This is a hack:
if("geoid" %in% names(cases_deaths)){
cases_deaths$FIPS <- cases_deaths$geoid
if (is.numeric(cases_deaths$geoid)){
cases_deaths <- cases_deaths %>%
mutate(geoid = stringr::str_pad(FIPS, width = max(nchar(geoid)), side="left", pad="0"))
}
cases_deaths$FIPS <- as.character(cases_deaths$geoid)
warning("Changing FIPS name in seeding. This is a hack")
}
if("date" %in% names(cases_deaths)){
Expand Down