Skip to contents

Outputs a character vector of similar areas for a given area.

Details

Usage

nearest_neighbours(
  AreaCode,
  AreaTypeID,
  proxy_settings = fingertips_proxy_settings(),
  path
)

Arguments

AreaCode

Character vector, ONS area code of area of interest

AreaTypeID

AreaTypeID of the nearest neighbours (see nearest_neighbour_areatypeids) for available IDs

proxy_settings

string; whether to use Internet Explorer proxy settings "default" or "none". Setting this manually will decrease runtime; default determined automatically.

path

String; Fingertips API address. Function will default to the correct address

Value

A character vector of area codes

See also

nearest_neighbour_areatypeids for the AreaTypeIDs available for this function

Other lookup functions: area_types(), category_types(), deprivation_decile(), indicator_areatypes(), indicator_metadata(), indicator_order(), indicators(), indicators_unique(), profiles()

Examples

if (FALSE) { # \dontrun{
nearest_neighbours(AreaCode = "E09000004", AreaTypeID = 502)} # }