find_geography_URI: Match Geography URI

Description Usage Arguments Details Value Examples

View source: R/find_geography_URI.R

Description

Matches passed string with URI available in the Standard Geography Code Register.For URI's function returned passed values.

Usage

1
find_geography_URI(geography, database = "internal")

Arguments

geography

A character vector of geography names. URIs starting with http are returned as such without searching the data set.

database

Can be one of the following internal, ScotStat, both. Defaults to internal that reflects an extract of Standard Geography Code Register. Option online searches across the Statistics.gov.scot.

Details

The function is mostly used internally to make using get_geography_data more user friendly. The function can be used in isolation to conveniently get URIs for the colloquial geography names.

Value

A named character vector of unique geography URIs. For multiple matches names will be numbered - string 'Edinburgh' will match multiple geographies that will be named 'Edinburgh1', 'Edinburgh2', ...

Examples

1
find_geography_URI(geography = c("Edinburgh", "Glasgow"))

konradzdeb/SmarterScotland documentation built on Oct. 2, 2019, 7:08 p.m.