url.countyhealthrankings: Public Health Information on State or County

View source: R/url.countyhealthrankings.R

url.countyhealthrankingsR Documentation

Public Health Information on State or County

Description

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

Usage

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

Arguments

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 urls.countyhealthrankings for handling multiple fips.

launch

Optional (default is TRUE) logical, specifying whether to launch browser to display website.

year

Optional year as number. Most years are untested.

Details

Now just an alias for urls.countyhealthrankings

Value

Returns character URL.

See Also

urls.countyhealthrankings for handling multiple fips, get.county.info from ejanalysis package, and get_county_demographics from choroplethr package.

Examples

#

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