Description Usage Arguments Value See Also Examples
Outputs a data frame of area type ids, their descriptions, and how they map to parent area types. To understand more on mappings of areas, see the Where to start section of the Life Expectancy vignette.
1 | area_types(AreaTypeName = NULL, AreaTypeID = NULL, ProfileID = NULL, path)
|
AreaTypeName |
Character vector, description of the area type; default is NULL |
AreaTypeID |
Numeric vector, the Fingertips ID for the area type; default is NULL |
ProfileID |
Numeric vector, id of profiles of interest |
path |
String; Fingertips API address. Function will default to the correct address |
A data frame of area type ids and their descriptions
indicators
for indicator lookups,
profiles
for profile lookups,
deprivation_decile
for deprivation decile lookups,
category_types
for category lookups,
indicator_areatypes
for indicators by area types lookups,
indicators_unique
for unique indicatorids and their names,
nearest_neighbours
for a vector of nearest neighbours for an area and
indicator_order
for the order indicators are presented on the
Fingertips website within a Domain
Other lookup functions:
category_types()
,
deprivation_decile()
,
indicator_areatypes()
,
indicator_metadata()
,
indicator_order()
,
indicators_unique()
,
indicators()
,
nearest_neighbours()
,
profiles()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
# Returns a data frame with all levels of area and how they map to one another
area_types()
# Returns a data frame of county and unitary authority mappings
area_types("counties")
# Returns a data frame of both counties, district
# and unitary authorities and their respective mappings
areas <- c("counties","district")
area_types(areas)
# Uses AreaTypeID to filter area types
area_types(AreaTypeID = 152)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.