urls.countyhealthrankings: URLs with Public Health Information on States and/or Counties

View source: R/urls.countyhealthrankings.R

urls.countyhealthrankingsR Documentation

URLs with Public Health Information on States and/or Counties

Description

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

Usage

urls.countyhealthrankings(
  fips = "http://www.countyhealthrankings.org",
  launch = TRUE,
  year = 2019
)

Arguments

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.

Value

Returns character URL(s).

See Also

get.county.info from ejanalysis package, and get_county_demographics from choroplethr package.

Examples

   # urls.countyhealthrankings(c('OHIO', 'new york', 25, '31165', 31165, 1001, 0))

ejanalysis/countyhealthrankings documentation built on March 25, 2022, 9:15 a.m.