View source: R/url.countyhealthrankings.R
url.countyhealthrankings | R Documentation |
Returns URL with public health information about a US State or County, and can also launch a browser to open that webpage. Information is from http://www.countyhealthrankings.org
url.countyhealthrankings( fips = "http://www.countyhealthrankings.org", launch = TRUE, year = 2019 )
fips |
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.
See |
launch |
Optional (default is TRUE) logical, specifying whether to launch browser to display website. |
year |
Optional year as number. Most years are untested. |
Now just an alias for urls.countyhealthrankings
Returns character URL.
urls.countyhealthrankings
for handling multiple fips, get.county.info
from ejanalysis package, and get_county_demographics
from choroplethr package.
#
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.