Package: tongfen 0.3.6

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.6.tar.gz
tongfen_0.3.6.zip(r-4.7)tongfen_0.3.6.zip(r-4.6)tongfen_0.3.6.zip(r-4.5)
tongfen_0.3.6.tgz(r-4.6-any)tongfen_0.3.6.tgz(r-4.5-any)
tongfen_0.3.6.tar.gz(r-4.7-any)tongfen_0.3.6.tar.gz(r-4.6-any)
tongfen_0.3.6.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
tongfen/json (API)
NEWS

# 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:

6.68 score 28 stars 68 scripts 186 downloads 17 exports 42 dependencies

Last updated from:d54af08622. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK175
source / vignettesOK235
linux-release-x86_64OK161
macos-release-arm64OK165
macos-oldrel-arm64OK202
windows-develOK114
windows-releaseOK110
windows-oldrelOK126
wasm-releaseOK131

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_us_censusmeta_for_additive_variablesmeta_for_ca_census_vectorsproportional_reaggregatetongfen_aggregatetongfen_ca_census_cttongfen_estimatetongfen_estimate_ca_censustongfen_tag_largest_overlap

Dependencies:bitbit64classclassIntclicliprcpp11crayonDBIdplyre1071genericsgluehmsKernSmoothlifecyclemagrittrMASSpillarpkgconfigprettyunitsprogressproxypurrrR6Rcppreadrrlangs2sfstringistringrtibbletidyrtidyselecttzdbunitsutf8vctrsvroomwithrwk

Estimating Canadian data on custom geographies

Rendered fromtongfen-ca-estimate.Rmdusingknitr::rmarkdownon Jun 02 2026.

Last update: 2021-04-14
Started: 2021-01-18

General TongFen

Rendered fromtongfen.Rmdusingknitr::rmarkdownon Jun 02 2026.

Last update: 2021-07-23
Started: 2020-06-12

Polling Districts

Rendered frompolling_districts.Rmdusingknitr::rmarkdownon Jun 02 2026.

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

TongFen for Canadian census data

Rendered fromtongfen_ca.Rmdusingknitr::rmarkdownon Jun 02 2026.

Last update: 2021-04-22
Started: 2020-06-12

TongFen for US census data

Rendered fromtongfen_us.Rmdusingknitr::rmarkdownon Jun 02 2026.

Last update: 2020-10-16
Started: 2020-06-12

Readme and manuals

Help Manual

Help pageTopics
Generate metadata from Candian census vectorsadd_census_ca_base_variables
Aggregate variables in grouped dataaggregate_data_with_meta
Check geographic integretycheck_tongfen_areas
Check geographic integretycheck_tongfen_single_areas
Generate togfen correspondence for list of geographiesestimate_tongfen_correspondence
Generate togfen 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
Togfen 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 US census data for 2000 and 2010 census on common census tract based geographyget_tongfen_us_census
Generate tongfen metadata for additive variablesmeta_for_additive_variables
Generate metadata from Candian census vectorsmeta_for_ca_census_vectors
Dasymetric downsamplingproportional_reaggregate
Perform tongfen according to correspondencetongfen_aggregate
Canadian census CT level tongfen via identifier matchingtongfen_ca_census_ct
Estimate variable values for custom geographytongfen_estimate
Tongfen estimate data for given geometrytongfen_estimate_ca_census
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