Add an equivalent HOOD_140 column to a HOOD_158-keyed data.frame
Source:R/toronto_neighbourhoods.R
morie_tps_add_hood_140_from_158.RdThe mirror of morie_tps_add_hood_158_from_140(). For 158-hoods
that did not exist in the 140-scheme (the newly-split children
like Etobicoke City Centre / Islington from 14-Islington-City-
Centre-West) the result is the historical parent 140-hood.
Usage
morie_tps_add_hood_140_from_158(
df,
col_in = NULL,
col_out = "HOOD_140_equiv",
crosswalk = NULL
)Arguments
- df
A TPS crime
data.frame.- col_in
Name of the input HOOD_158 column.
- col_out
Name of the new column. Default
"HOOD_140_equiv".- crosswalk
Optional pre-loaded crosswalk; defaults to
morie_to_hood_crosswalk().