View source: R/urls.countyhealthrankings.R
urls.countyhealthrankings | R Documentation |
Returns URLs with public health information about US States or Counties, and can also launch a browser to open a single webpage if just 1 specified. Information is from http://www.countyhealthrankings.org
urls.countyhealthrankings( fips = "http://www.countyhealthrankings.org", launch = TRUE, year = 2019 )
fips |
Single fips or a vector. Optional (defaults to full USA webpage) character FIPS code of State (2 characters) or County (5 characters), or name of State (e.g., District of Columbia). Attempts to replace any missing leading zero. Ability to enter County name as fips is not yet working. |
launch |
Optional (default is TRUE but only if just one fips is specified) logical, specifying whether to launch browser to display website. Ignored if >1 fips provided. |
year |
Optional year as number. Most years are untested. |
Returns character URL(s).
get.county.info
from ejanalysis package, and get_county_demographics
from choroplethr package.
# urls.countyhealthrankings(c('OHIO', 'new york', 25, '31165', 31165, 1001, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.