Skip to content

Commit 2786535

Browse files
committed
refactor: use covidcast state_census.csv directly rather than package
1 parent 9fe05de commit 2786535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data-raw/state_census.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
library(dplyr)
22
library(covidcast)
33

4-
state_census <- covidcast::state_census %>%
4+
state_census <- read_csv("https://github.com/cmu-delphi/covidcast/raw/c89e4d295550ba1540d64d2cc991badf63ad04e5/Python-packages/covidcast-py/covidcast/geo_mappings/state_census.csv") %>% # nolint: line_length_linter
55
select(STATE, NAME, POPESTIMATE2019, ABBR) %>%
66
rename(abbr = ABBR, name = NAME, pop = POPESTIMATE2019, fips = STATE) %>%
77
# Left-pad FIPS codes with zeroes to 2 digits, and convert to character

0 commit comments

Comments
 (0)