Toronto Zoning per Neighbourhood (EsriCanadaEducation)
Source:R/datasets_tps_arcgis_hub.R
morie_datasets_toronto_zoning_per_neighbourhood.RdWraps EsriCanadaEducation's ArcGIS Online Feature Service
ZonesofToronto_Neighbourhoods
(item id af06159170914808983959df6163fc86; FeatureServer at
services.arcgis.com/As5CFN3ThbQpy8Ph/.../ZonesofToronto_Neighbourhoods/FeatureServer).
Two layers in the service:
Usage
morie_datasets_toronto_zoning_per_neighbourhood(
layer = c("neighbourhoods", "zoning_stats"),
format = "json",
where = "1=1",
max_features = NULL,
offline = TRUE
)Arguments
- layer
One of
"neighbourhoods"(default, polygon demographics) or"zoning_stats"(per-zone area table).- format
One of
"json"(default),"geojson","csv","shapefile","fgdb". Only honoured whenoffline = FALSE.- where
Optional FeatureServer WHERE filter (live mode).
- max_features
Optional row cap.
- offline
Logical; if
TRUE(default), read the bundled synthetic fixture.
Details
layer = "neighbourhoods"(FeatureServer layer 0)Polygon boundaries for Toronto neighbourhoods with a 39-column demographic schema – total population, sex split, 18 age brackets (0-4 through 85+), senior + youth + child aggregates, and 10 specific language counts (Chinese, Italian, Korean, Persian, Portuguese, Russian, Spanish, Tagalog, Tamil, Urdu) plus a
HomeLanguageCategorytotal.layer = "zoning_stats"(FeatureServer table 1)Per- neighbourhood zoning-area stats – 4 columns (
OBJECTID,ZoneDesc,Neighbourhood_Name,SUM_Area). Many rows per neighbourhood, one perZoneDesc(Commercial, Residential, Industrial, etc.).
Offline mode reads bundled 5-row synthetic fixtures
(toronto_zoning_neighbourhoods_sample.csv /
toronto_zoning_stats_sample.csv) – SYNTH-stamped, not
attributable to actual Toronto neighbourhoods. Live mode hits
the FeatureServer via the 3SS+ generic
morie_datasets_arcgis_item_by_id() resolver.
Examples
df <- morie_datasets_toronto_zoning_per_neighbourhood(offline = TRUE)
head(df[, c("Neighbourhood", "Total_Population", "Seniors65andover")])
#> Neighbourhood Total_Population Seniors65andover
#> 1 SYNTH Neighbourhood One 12000 2560
#> 2 SYNTH Neighbourhood Two 5500 1100
#> 3 SYNTH Neighbourhood Three 18500 3990
#> 4 SYNTH Neighbourhood Four 8200 1760
#> 5 SYNTH Neighbourhood Five 3200 670