{
  "_id": "6a228139cd65a98ecbd51b63",
  "Package": "tongfen",
  "Type": "Package",
  "Title": "Make Data Based on Different Geographies Comparable",
  "Version": "0.3.7",
  "Authors@R": "c(\nperson(\"Jens\", \"von Bergmann\", email = \"jens@mountainmath.ca\", role = c(\"aut\", \"cre\"), comment = \"creator and maintainer\"))",
  "Description": "Several functions to allow comparisons of data across\ndifferent geographies, in particular for Canadian census data\nfrom different censuses.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "ByteCompile": "yes",
  "LazyData": "true",
  "NeedsCompilation": "no",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr, rmarkdown",
  "URL": "https://github.com/mountainMath/tongfen,\nhttps://mountainmath.github.io/tongfen/",
  "BugReports": "https://github.com/mountainMath/tongfen/issues",
  "Language": "en-US",
  "RdMacros": "lifecycle",
  "Config/pak/sysreqs": "libabsl-dev cmake libgdal-dev gdal-bin libgeos-dev\nlibicu-dev libssl-dev libproj-dev libsqlite3-dev\nlibudunits2-dev libx11-dev",
  "Repository": "https://mountainmath.r-universe.dev",
  "Date/Publication": "2026-06-05 04:56:04 UTC",
  "RemoteUrl": "https://github.com/mountainmath/tongfen",
  "RemoteRef": "HEAD",
  "RemoteSha": "1797cf47081602b89bcd1ec842c499a537f1a328",
  "Packaged": {
    "Date": "2026-06-05 07:53:14 UTC",
    "User": "root"
  },
  "Author": "Jens von Bergmann [aut, cre] (creator and maintainer)",
  "Maintainer": "Jens von Bergmann <jens@mountainmath.ca>",
  "MD5sum": "d75d4851565d0f009644536c69938759",
  "_user": "mountainmath",
  "_type": "src",
  "_file": "tongfen_0.3.7.tar.gz",
  "_fileid": "7ad176586cadbb7c7cc5f59f42a6b06bf0932268501a84abb26742dff39b6867",
  "_filesize": 2213292,
  "_sha256": "7ad176586cadbb7c7cc5f59f42a6b06bf0932268501a84abb26742dff39b6867",
  "_created": "2026-06-05T07:53:14.000Z",
  "_published": "2026-06-05T07:56:41.786Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79686954129,
      "time": 167,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7431613095"
    },
    {
      "job": 79686954112,
      "time": 170,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7431614351"
    },
    {
      "job": 79686954123,
      "time": 99,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7431599828"
    },
    {
      "job": 79686954197,
      "time": 137,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7431612984"
    },
    {
      "job": 79686381911,
      "time": 239,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7431562579"
    },
    {
      "job": 79686954096,
      "time": 134,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7431603407"
    },
    {
      "job": 79686954121,
      "time": 104,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7431594053"
    },
    {
      "job": 79686954154,
      "time": 93,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7431590587"
    },
    {
      "job": 79686954118,
      "time": 125,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7431600830"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mountainmath/actions/runs/27002593460",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mountainmath/tongfen",
  "_commit": {
    "id": "1797cf47081602b89bcd1ec842c499a537f1a328",
    "author": "Jens von Bergmann <mountainMath@users.noreply.github.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #14 from mountainMath/v0.3.7\n\ntongfen v0.3.7",
    "time": 1780635364
  },
  "_maintainer": {
    "name": "Jens von Bergmann",
    "email": "jens@mountainmath.ca",
    "login": "mountainmath",
    "description": "",
    "uuid": 1395960
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "version": ">= 1.0",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "version": ">= 1.0",
      "role": "Imports"
    },
    {
      "package": "sf",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "readr",
      "role": "Imports"
    },
    {
      "package": "utils",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "RColorBrewer",
      "role": "Suggests"
    },
    {
      "package": "ggplot2",
      "role": "Suggests"
    },
    {
      "package": "geojsonsf",
      "role": "Suggests"
    },
    {
      "package": "cancensus",
      "role": "Suggests"
    },
    {
      "package": "tidycensus",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    },
    {
      "package": "readxl",
      "role": "Suggests"
    },
    {
      "package": "scales",
      "role": "Suggests"
    },
    {
      "package": "microbenchmark",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "mountainmath",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-23",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v.0.3.7",
      "date": "2026-06-05"
    }
  ],
  "_stars": 28,
  "_contributors": [
    {
      "user": "mountainmath",
      "count": 150,
      "uuid": 1395960
    },
    {
      "user": "dshkol",
      "count": 2,
      "uuid": 5847527
    }
  ],
  "_userbio": {
    "uuid": 1395960,
    "type": "user",
    "name": "Jens von Bergmann"
  },
  "_downloads": {
    "count": 192,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tongfen"
  },
  "_devurl": "https://github.com/mountainmath/tongfen",
  "_pkgdown": "https://mountainmath.github.io/tongfen/",
  "_searchresults": 68,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/tongfen.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/mountainmath/tongfen",
  "_realowner": "mountainmath",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.3",
      "date": "2020-11-04"
    },
    {
      "version": "0.3.3",
      "date": "2021-07-24"
    },
    {
      "version": "0.3.5",
      "date": "2022-04-28"
    },
    {
      "version": "0.3.6",
      "date": "2025-05-02"
    }
  ],
  "_exports": [
    "aggregate_data_with_meta",
    "check_tongfen_areas",
    "estimate_tongfen_correspondence",
    "get_tongfen_ca_census",
    "get_tongfen_ca_census_ct_from_da",
    "get_tongfen_census_ct",
    "get_tongfen_census_da",
    "get_tongfen_correspondence_ca_census",
    "get_tongfen_us_census",
    "meta_for_additive_variables",
    "meta_for_ca_census_vectors",
    "proportional_reaggregate",
    "tongfen_aggregate",
    "tongfen_ca_census_ct",
    "tongfen_estimate",
    "tongfen_estimate_ca_census",
    "tongfen_tag_largest_overlap"
  ],
  "_datasets": [
    {
      "name": "vancouver_elections_data_2015",
      "title": "A dataset with polling station votes data from the 2015 federal election in the Vancouver area",
      "object": "vancouver_elections_data_2015",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "FED_NUM",
        "Merge",
        "no_poll",
        "void_poll",
        "PD_NUM",
        "Party",
        "Incumbent",
        "Elected",
        "Votes",
        "PDNUM",
        "PD_2015"
      ],
      "rows": 7890,
      "table": true,
      "tojson": true
    },
    {
      "name": "vancouver_elections_data_2019",
      "title": "A dataset with polling station votes data from the 2019 federal election in the Vancouver area",
      "object": "vancouver_elections_data_2019",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "FED_NUM",
        "Merge",
        "no_poll",
        "void_poll",
        "PD_NUM",
        "Party",
        "Incumbent",
        "Elected",
        "Votes",
        "PDNUM",
        "PD_2019"
      ],
      "rows": 8519,
      "table": true,
      "tojson": true
    },
    {
      "name": "vancouver_elections_geos_2015",
      "title": "A dataset with polling district geographies from the 2015 federal election in the Vancouver area",
      "object": "vancouver_elections_geos_2015",
      "class": [
        "sf",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "FED_NUM",
        "PD_NUM",
        "POLL_NAME",
        "ADV_POLL",
        "AP_2015",
        "PD_2015",
        "geometry"
      ],
      "rows": 1196,
      "table": false,
      "tojson": true
    },
    {
      "name": "vancouver_elections_geos_2019",
      "title": "A dataset with polling district geographies from the 2019 federal election in the Vancouver area",
      "object": "vancouver_elections_geos_2019",
      "class": [
        "sf",
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "FED_NUM",
        "PD_NUM",
        "POLL_NAME",
        "ADV_POLL",
        "AP_2019",
        "PD_2019",
        "geometry"
      ],
      "rows": 1178,
      "table": false,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_census_ca_base_variables",
      "title": "Generate metadata from Candian census vectors",
      "topics": [
        "add_census_ca_base_variables"
      ]
    },
    {
      "page": "aggregate_data_with_meta",
      "title": "Aggregate variables in grouped data",
      "topics": [
        "aggregate_data_with_meta"
      ]
    },
    {
      "page": "check_tongfen_areas",
      "title": "Check geographic integrety",
      "topics": [
        "check_tongfen_areas"
      ]
    },
    {
      "page": "check_tongfen_single_areas",
      "title": "Check geographic integrety",
      "topics": [
        "check_tongfen_single_areas"
      ]
    },
    {
      "page": "estimate_tongfen_correspondence",
      "title": "Generate togfen correspondence for list of geographies",
      "topics": [
        "estimate_tongfen_correspondence"
      ]
    },
    {
      "page": "estimate_tongfen_single_correspondence",
      "title": "Generate togfen correspondence for two geographies",
      "topics": [
        "estimate_tongfen_single_correspondence"
      ]
    },
    {
      "page": "get_correspondence_ca_census_for",
      "title": "Get StatCan DA or DB level correspondence file",
      "topics": [
        "get_correspondence_ca_census_for"
      ]
    },
    {
      "page": "get_single_correspondence_ca_census_for",
      "title": "Get StatCan DA or DB level correspondence file",
      "topics": [
        "get_single_correspondence_ca_census_for"
      ]
    },
    {
      "page": "get_tongfen_ca_census",
      "title": "Togfen data from several Canadian censuses",
      "topics": [
        "get_tongfen_ca_census"
      ]
    },
    {
      "page": "get_tongfen_ca_census_ct_from_da",
      "title": "Canadian census CT level tongfen via DA correspondence",
      "topics": [
        "get_tongfen_ca_census_ct_from_da"
      ]
    },
    {
      "page": "get_tongfen_census_ct",
      "title": "Canadian census CT level tongfen",
      "topics": [
        "get_tongfen_census_ct"
      ]
    },
    {
      "page": "get_tongfen_census_da",
      "title": "Canadian Census DA level tongfen",
      "topics": [
        "get_tongfen_census_da"
      ]
    },
    {
      "page": "get_tongfen_correspondence_ca_census",
      "title": "Get StatCan correspondence data",
      "topics": [
        "get_tongfen_correspondence_ca_census"
      ]
    },
    {
      "page": "get_tongfen_us_census",
      "title": "Get US census data for 2000 and 2010 census on common census tract based geography",
      "topics": [
        "get_tongfen_us_census"
      ]
    },
    {
      "page": "meta_for_additive_variables",
      "title": "Generate tongfen metadata for additive variables",
      "topics": [
        "meta_for_additive_variables"
      ]
    },
    {
      "page": "meta_for_ca_census_vectors",
      "title": "Generate metadata from Candian census vectors",
      "topics": [
        "meta_for_ca_census_vectors"
      ]
    },
    {
      "page": "proportional_reaggregate",
      "title": "Dasymetric downsampling",
      "topics": [
        "proportional_reaggregate"
      ]
    },
    {
      "page": "tongfen_aggregate",
      "title": "Perform tongfen according to correspondence",
      "topics": [
        "tongfen_aggregate"
      ]
    },
    {
      "page": "tongfen_ca_census_ct",
      "title": "Canadian census CT level tongfen via identifier matching",
      "topics": [
        "tongfen_ca_census_ct"
      ]
    },
    {
      "page": "tongfen_estimate",
      "title": "Estimate variable values for custom geography",
      "topics": [
        "tongfen_estimate"
      ]
    },
    {
      "page": "tongfen_estimate_ca_census",
      "title": "Tongfen estimate data for given geometry",
      "topics": [
        "tongfen_estimate_ca_census"
      ]
    },
    {
      "page": "tongfen_tag_largest_overlap",
      "title": "Tag regions by largest overlap",
      "topics": [
        "tongfen_tag_largest_overlap"
      ]
    },
    {
      "page": "vancouver_elections_data_2015",
      "title": "A dataset with polling station votes data from the 2015 federal election in the Vancouver area",
      "topics": [
        "vancouver_elections_data_2015"
      ]
    },
    {
      "page": "vancouver_elections_data_2019",
      "title": "A dataset with polling station votes data from the 2019 federal election in the Vancouver area",
      "topics": [
        "vancouver_elections_data_2019"
      ]
    },
    {
      "page": "vancouver_elections_geos_2015",
      "title": "A dataset with polling district geographies from the 2015 federal election in the Vancouver area",
      "topics": [
        "vancouver_elections_geos_2015"
      ]
    },
    {
      "page": "vancouver_elections_geos_2019",
      "title": "A dataset with polling district geographies from the 2019 federal election in the Vancouver area",
      "topics": [
        "vancouver_elections_geos_2019"
      ]
    }
  ],
  "_pkglogo": "https://mountainmath.github.io/tongfen/logo.png",
  "_readme": "https://github.com/mountainmath/tongfen/raw/HEAD/README.md",
  "_rundeps": [
    "bit",
    "bit64",
    "class",
    "classInt",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "DBI",
    "dplyr",
    "e1071",
    "generics",
    "glue",
    "hms",
    "KernSmooth",
    "lifecycle",
    "magrittr",
    "MASS",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "proxy",
    "purrr",
    "R6",
    "Rcpp",
    "readr",
    "rlang",
    "s2",
    "sf",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "units",
    "utf8",
    "vctrs",
    "vroom",
    "withr",
    "wk"
  ],
  "_vignettes": [
    {
      "source": "tongfen-ca-estimate.Rmd",
      "filename": "tongfen-ca-estimate.html",
      "title": "Estimating Canadian data on custom geographies",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2021-01-18 18:42:54",
      "modified": "2021-04-14 06:25:54",
      "commits": 5
    },
    {
      "source": "tongfen.Rmd",
      "filename": "tongfen.html",
      "title": "General TongFen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Population change"
      ],
      "created": "2020-06-12 06:37:41",
      "modified": "2021-07-23 17:27:31",
      "commits": 4
    },
    {
      "source": "polling_districts.Rmd",
      "filename": "polling_districts.html",
      "title": "Polling Districts",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2020-10-16 01:10:09",
      "modified": "2021-01-17 07:01:30",
      "commits": 2
    },
    {
      "source": "tongfen_ca.Rmd",
      "filename": "tongfen_ca.html",
      "title": "TongFen for Canadian census data",
      "author": "Jens von Bergmann",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Aggregating up data across regions",
        "Change in Vancouver children"
      ],
      "created": "2020-06-12 06:37:41",
      "modified": "2021-04-22 19:49:44",
      "commits": 5
    },
    {
      "source": "tongfen_us.Rmd",
      "filename": "tongfen_us.html",
      "title": "TongFen for US census data",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2020-06-12 06:37:41",
      "modified": "2020-10-16 02:46:47",
      "commits": 3
    }
  ],
  "_score": 6.6776069527204935,
  "_indexed": true,
  "_nocasepkg": "tongfen",
  "_universes": [
    "mountainmath"
  ],
  "_previous": "0.3.6",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.7",
      "date": "2026-06-05T07:55:48.000Z",
      "distro": "noble",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "0b48f9c6f3a98fba9a029520ad4ba0ef793f618bcd62e6f14552499d15dd945c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/27002593460"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.7",
      "date": "2026-06-05T07:55:51.000Z",
      "distro": "noble",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "52f7010501bf65321f075276e1e6e357795897b3ef955a9109b912d95a8e2b02",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/27002593460"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.7",
      "date": "2026-06-05T07:55:15.000Z",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "c637ad32a08883a03be8d4a05dbf4040b3927a2dd86640d1eff3a97ee7cfd926",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/27002593460"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.7",
      "date": "2026-06-05T07:55:53.000Z",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "8fc00e11a98ad77d4c2b0d5ab64f51a2fe1662a65d6e804a9eced8b1ee74546d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/27002593460"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.7",
      "date": "2026-06-05T07:55:47.000Z",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "c221225accbfa8251332c017f17fb0963b3a539f271a39b7709e94345cb29fda",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/27002593460"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.7",
      "date": "2026-06-05T07:54:40.000Z",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "722470dc0bf7135fb82fab9ae352522af970b6a9234194483edc6fbe5ab6ee07",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/27002593460"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.7",
      "date": "2026-06-05T07:54:30.000Z",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "ca2f04076e7ff5deffa8951aeabafd22df0b9e3bbe8c6b8c7d90e847d93feef5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/27002593460"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.7",
      "date": "2026-06-05T07:55:01.000Z",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "7b5b393b4efbafb8453c5d7754e416d02053cdcfb1d84cfc97b73953d18ef575",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/27002593460"
    }
  ]
}