Skip to content

Commit fa5c215

Browse files
authored
Merge pull request #372 from cmu-delphi/sgratzl/blogbuild
fix: use new functions from package
2 parents e30d71d + 1184001 commit fa5c215

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

content/blog/2020-08-26-fb-survey.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,9 @@ plot_one = function(geo_value, title = NULL, xlab = NULL,
328328
trans21 = function(x) trans(x, range2, range1)
329329
330330
# Find state name, find abbreviation, then set title
331-
state_name = fips_to_name(paste0(substr(geo_value, 1, 2), "000"))
331+
state_name = state_fips_to_name(paste0(substr(geo_value, 1, 2), "000"))
332332
state_abbr = name_to_abbr(state_name)
333-
title = paste0(fips_to_name(geo_value), ", ", state_abbr)
333+
title = paste0(county_fips_to_name(geo_value), ", ", state_abbr)
334334
335335
# Transform the combined signal to the incidence range, then stack
336336
# these rowwise into one data frame

content/blog/2020-08-26-fb-survey.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,9 +322,9 @@ <h2>Some Interesting Examples</h2>
322322
trans21 = function(x) trans(x, range2, range1)
323323

324324
# Find state name, find abbreviation, then set title
325-
state_name = fips_to_name(paste0(substr(geo_value, 1, 2), &quot;000&quot;))
325+
state_name = state_fips_to_name(paste0(substr(geo_value, 1, 2), &quot;000&quot;))
326326
state_abbr = name_to_abbr(state_name)
327-
title = paste0(fips_to_name(geo_value), &quot;, &quot;, state_abbr)
327+
title = paste0(county_fips_to_name(geo_value), &quot;, &quot;, state_abbr)
328328

329329
# Transform the combined signal to the incidence range, then stack
330330
# these rowwise into one data frame

0 commit comments

Comments
 (0)