demo

This is the onmaRg library

It is primarily used to quickly and easily load Ontario Marginalization data:

library(onmaRg)
## Loading required package: dplyr
## 
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
## 
##     filter, lag
## The following objects are masked from 'package:base':
## 
##     intersect, setdiff, setequal, union
## Loading required package: httr
## Loading required package: readxl
## Loading required package: sf
## Linking to GEOS 3.9.1, GDAL 3.4.3, PROJ 7.2.1; sf_use_s2() is TRUE
## Loading required package: stringr
OnMarg_16_DA_df <- om_data(2016, "DAUID")

OnMarg_16_DA_sf <- om_geo(2016, "DAUID")
## Reading layer `lda_000b16a_e' from data source 
##   `C:\Users\willi\AppData\Local\Temp\RtmpOqdY3B\lda_000b16a_e.shx' 
##   using driver `ESRI Shapefile'
## Simple feature collection with 56589 features and 22 fields
## Geometry type: MULTIPOLYGON
## Dimension:     XY
## Bounding box:  xmin: 3689439 ymin: 659338.9 xmax: 9015737 ymax: 5242179
## Projected CRS: PCS_Lambert_Conformal_Conic