Package: tongfen 0.3.9

tongfen: Make Data Based on Different Geographies Comparable

Several functions to allow comparisons of data across different geographies, in particular for Canadian census data from different censuses.

Authors:Jens von Bergmann [aut, cre]

tongfen_0.3.9.tar.gz
tongfen_0.3.9.zip(r-4.7-any)tongfen_0.3.9.zip(r-4.6-any)tongfen_0.3.9.zip(r-4.5-any)
tongfen_0.3.9.tgz(r-4.6-any)tongfen_0.3.9.tgz(r-4.5-any)
tongfen_0.3.9.tar.gz(r-4.7-any)tongfen_0.3.9.tar.gz(r-4.6-any)
tongfen_0.3.9.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
tongfen/json (API)

# Install 'tongfen' in R:
install.packages('tongfen', repos = c('https://mountainmath.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/mountainmath/tongfen/issues

Pkgdown/docs site:https://mountainmath.github.io

Datasets:

On CRAN:

Conda:

7.43 score 28 stars 107 scripts 378 downloads 22 exports 42 dependencies

Last updated from:5b1377a650. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK158
source / vignettesOK313
linux-releaseOK160
macos-releaseOK104
macos-oldrelOK121
windows-develOK138
windows-releaseOK131
windows-oldrelOK106
wasm-releaseOK125

Exports:aggregate_data_with_metacheck_tongfen_areasestimate_tongfen_correspondenceget_tongfen_ca_censusget_tongfen_ca_census_ct_from_daget_tongfen_census_ctget_tongfen_census_daget_tongfen_correspondence_ca_censusget_tongfen_correspondence_us_censusget_tongfen_us_censusmeta_for_additive_variablesmeta_for_ca_census_vectorsproportional_reaggregatetongfen_aggregatetongfen_anomaly_joinstongfen_ca_census_cttongfen_detect_anomaliestongfen_estimatetongfen_estimate_ca_censustongfen_join_correspondencetongfen_join_regionstongfen_tag_largest_overlap

Dependencies:bitbit64classclassIntclicliprcpp11crayonDBIdplyre1071genericsgluehmsKernSmoothlifecyclemagrittrnanoparquetpillarpkgconfigprettyunitsprogressproxypurrrR6Rcppreadrrlangs2sfstringistringrtibbletidyrtidyselecttzdbunitsutf8vctrsvroomwithrwk

Estimating Canadian data on custom geographies

Last update: 2026-10-05
Started: 2021-01-18

General TongFen
Population change

Last update: 2026-10-05
Started: 2020-06-12

Geocoding anomalies in TongFen timelines
Population timelines for Toronto | Detecting anomalies | Joining regions | Tuning | Anomalies in TongFen data

Last update: 2026-10-05
Started: 2026-10-05

TongFen for Canadian census data
Aggregating up data across regions | Change in Vancouver children

Last update: 2026-08-28
Started: 2020-06-12

TongFen for US census data
Bridging to the 2020 census | Notes on the common geography

Last update: 2026-08-28
Started: 2020-06-12

Polling Districts

Last update: 2021-01-17
Started: 2020-10-16

Readme and manuals

Help Manual

Help pageTopics
Generate metadata from Canadian census vectorsadd_census_ca_base_variables
Aggregate variables in grouped dataaggregate_data_with_meta
Check geographic integritycheck_tongfen_areas
Check geographic integritycheck_tongfen_single_areas
Generate tongfen correspondence for list of geographiesestimate_tongfen_correspondence
Generate tongfen correspondence for two geographiesestimate_tongfen_single_correspondence
Get StatCan DA or DB level correspondence fileget_correspondence_ca_census_for
Get StatCan DA or DB level correspondence fileget_single_correspondence_ca_census_for
Tongfen data from several Canadian censusesget_tongfen_ca_census
Canadian census CT level tongfen via DA correspondenceget_tongfen_ca_census_ct_from_da
Canadian census CT level tongfenget_tongfen_census_ct
Canadian Census DA level tongfenget_tongfen_census_da
Get StatCan correspondence dataget_tongfen_correspondence_ca_census
Get correspondence table for US census geographiesget_tongfen_correspondence_us_census
Get US census data for several censuses on a common geographyget_tongfen_us_census
Generate tongfen metadata for additive variablesmeta_for_additive_variables
Generate metadata from Canadian census vectorsmeta_for_ca_census_vectors
Dasymetric downsamplingproportional_reaggregate
Perform tongfen according to correspondencetongfen_aggregate
Determine regions to join to correct for likely geocoding anomaliestongfen_anomaly_joins
Canadian census CT level tongfen via identifier matchingtongfen_ca_census_ct
Detect likely geocoding anomalies in timelines on a common geographytongfen_detect_anomalies
Estimate variable values for custom geographytongfen_estimate
Tongfen estimate data for given geometrytongfen_estimate_ca_census
Join regions in a correspondencetongfen_join_correspondence
Join regions in data on a common geographytongfen_join_regions
Tag regions by largest overlaptongfen_tag_largest_overlap
A dataset with polling station votes data from the 2015 federal election in the Vancouver areavancouver_elections_data_2015
A dataset with polling station votes data from the 2019 federal election in the Vancouver areavancouver_elections_data_2019
A dataset with polling district geographies from the 2015 federal election in the Vancouver areavancouver_elections_geos_2015
A dataset with polling district geographies from the 2019 federal election in the Vancouver areavancouver_elections_geos_2019