Skip to contents

TongFen on custom geographies

estimate_tongfen_correspondence()
Generate tongfen correspondence for list of geographies
tongfen_aggregate()
Perform tongfen according to correspondence
check_tongfen_areas()
Check geographic integrity
tongfen_tag_largest_overlap()
Tag regions by largest overlap
aggregate_data_with_meta()
Aggregate variables in grouped data
meta_for_additive_variables()
Generate tongfen metadata for additive variables

Estimates for custom geographies

tongfen_estimate()
Estimate variable values for custom geography
proportional_reaggregate()
Dasymetric downsampling

Canadian census data

get_tongfen_ca_census()
Tongfen data from several Canadian censuses
get_tongfen_correspondence_ca_census()
Get StatCan correspondence data
meta_for_ca_census_vectors()
Generate metadata from Canadian census vectors
tongfen_estimate_ca_census()
Tongfen estimate data for given geometry

US census data

get_tongfen_us_census()
Get US census data for several censuses on a common geography
get_tongfen_correspondence_us_census()
Get correspondence table for US census geographies

Geocoding anomalies

tongfen_detect_anomalies()
Detect likely geocoding anomalies in timelines on a common geography
tongfen_anomaly_joins()
Determine regions to join to correct for likely geocoding anomalies
tongfen_join_regions()
Join regions in data on a common geography
tongfen_join_correspondence()
Join regions in a correspondence

Data

vancouver_elections_data_2015
A dataset with polling station votes data from the 2015 federal election in the Vancouver area
vancouver_elections_data_2019
A dataset with polling station votes data from the 2019 federal election in the Vancouver area
vancouver_elections_geos_2015
A dataset with polling district geographies from the 2015 federal election in the Vancouver area
vancouver_elections_geos_2019
A dataset with polling district geographies from the 2019 federal election in the Vancouver area

Lower level helpers

Not exported, use with tongfen:::

add_census_ca_base_variables()
Generate metadata from Canadian census vectors
estimate_tongfen_single_correspondence()
Generate tongfen correspondence for two geographies
get_single_correspondence_ca_census_for()
Get StatCan DA or DB level correspondence file

Deprecated functions

check_tongfen_single_areas()
Check geographic integrity
get_correspondence_ca_census_for()
Get StatCan DA or DB level correspondence file
get_tongfen_ca_census_ct_from_da()
Canadian census CT level tongfen via DA correspondence
get_tongfen_census_ct()
Canadian census CT level tongfen
get_tongfen_census_da()
Canadian Census DA level tongfen
tongfen_ca_census_ct()
Canadian census CT level tongfen via identifier matching