location_function: Search for the locations of all (GP) practices, by code....

Description Usage Arguments Value Examples

Description

Search for the locations of all (GP) practices, by code. Returns GeoJSON or sfc.

Usage

1
location_function(CCG_code, as_sf = TRUE/FALSE)

Arguments

CCG_code

A code assigned to each CCG, found using organisation_details().

as_sf

If TRUE, Returns as Simple Features Collection instead.

Value

Returns the locations of all GP practices in a CCG). Returns GeoJSON (or sfc).

Examples

1
2
3
Location (approximate) of all practices in a CCG = location_function(CCG_code, as_sf = TRUE/FALSE)
location_function("99H", as_sf = TRUE)
Read the [wiki](https://github.com/fergustaylor/openprescribingR/wiki) for more help.

fergustaylor/openprescribingR documentation built on May 31, 2019, 1:15 p.m.