
Use of Force: Gender Composition (RBDC-UOF-TBL-006)
Source:R/datasets_tps_arcgis_hub_wrappers.R
morie_datasets_tps_use_of_force_gender_composition.RdToronto PS ArcGIS Hub dataset wrapper. Thin dispatch to
morie_datasets_tps_arcgis_hub_by_id() with the canonical
hub item_id de9284945c3e479e938c4b77586535b1.
Usage
morie_datasets_tps_use_of_force_gender_composition(
format = "json",
where = "1=1",
max_features = NULL,
layer_idx = 0L,
offline = TRUE,
dest = NULL
)Arguments
- format
One of
"json"(default),"geojson","csv","shapefile","fgdb".- where
SoQL-style
WHEREfilter passed to FeatureServer?where=(default"1=1").- max_features
Optional cap on returned rows. Passed as
resultRecordCountto FeatureServer; ignored for binary formats.- layer_idx
Integer index of the FeatureServer layer to pull (default
0L, the first layer).- offline
Logical; if
TRUE, the hub_id is resolved via the included catalog (no network needed for the resolution step). DefaultTRUE– you can run this against the 71 catalog entries without network. Live data fetches always hit the network regardless of this argument; "offline" here only affects the hub_id -> FeatureServer URL lookup.- dest
Optional path for binary downloads (
format %in% c("shapefile", "fgdb")); defaults totempfile().
Value
A data.frame / GeoJSON list / file path; see
morie_datasets_tps_arcgis_hub_by_id() for per-format semantics.
Details
This table provides information about the genders of people involved in enforcement action incidents, including those that may be associated with a reported use of force.
Tags: race; race based data; rbdc
Examples
# \donttest{
df <- try(morie_datasets_tps_use_of_force_gender_composition(
max_features = 5L
))
if (!inherits(df, "try-error")) head(df)
#> Type_of_Incident Perceived_Race_of_People_Involv
#> 1 Reported Use of Force Incidents Black
#> 2 Reported Use of Force Incidents East/Southeast Asian
#> 3 Reported Use of Force Incidents Indigenous
#> 4 Reported Use of Force Incidents Latino
#> 5 Reported Use of Force Incidents Middle Eastern
#> Gender_of_People_Involved Incident_Count ObjectId
#> 1 Women 11 1
#> 2 Women 2 2
#> 3 Women 0 3
#> 4 Women 2 4
#> 5 Women 1 5
# }