URL functions - Get URLs of useful report(s) on STATE containing the given fips, from equity atlas
Source:R/URL_FUNCTIONS_part2.R
url_state_equityatlas.Rd
URL functions - Get URLs of useful report(s) on STATE containing the given fips, from equity atlas
Usage
url_state_equityatlas(
fips = NULL,
sitepoints = NULL,
lat = NULL,
lon = NULL,
shapefile = NULL,
as_html = FALSE,
linktext = "State (Equity Atlas)",
ifna = "https://nationalequityatlas.org",
baseurl = "https://nationalequityatlas.org/research/data_summary",
statereport = TRUE,
...
)
Arguments
- fips
vector of fips codes
- sitepoints
if provided and fips is NULL, gets county fips from lat,lon columns of sitepoints
- lat, lon
ignored if sitepoints provided, can be used otherwise, if shapefile and fips not used
- shapefile
if provided and fips is NULL, gets county fips from lat,lon of polygon centroid
- as_html
Whether to return as just the urls or as html hyperlinks to use in a DT::datatable() for example
- linktext
used as text for hyperlinks, if supplied and as_html=TRUE
- ifna
URL shown for missing, NA, NULL, bad input values
- baseurl
do not change unless endpoint actually changed
- statereport
Do not use directly. passed to
url_county_equityatlas()
.- ...
unused
Examples
url_county_equityatlas(fips_counties_from_state_abbrev("DE"))
# browseURL(url_county_equityatlas(fips_counties_from_state_abbrev("DE"))[1])