msoa2011_lds: MSOA boundaries in Leeds

Description Examples

Description

MSOA boundaries in Leeds

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
u = "https://borders.ukdataservice.ac.uk/ukborders/easy_download/prebuilt/shape/infuse_msoa_lyr_2011_clipped.zip"
msoa2011 = duraz(u)
msoa2011 = st_transform(msoa2011, 4326)
object.size(msoa2011) / 1e6 # 300+ mb
cents = st_centroid(msoa2011)
cents_lds = cents[leeds, ]
sel = msoa2011$geo_code %in% cents_lds$geo_code
msoa2011_lds = msoa2011[sel, ]
object.size(msoa2011_lds) / 1e6 # 4mb
mapview::mapview(msoa2011_lds)
plot(msoa2011_lds$geometry)
devtools::use_data(msoa2011_lds)

## End(Not run)

Robinlovelace/ukboundaries documentation built on May 28, 2019, 2:28 p.m.