{
  "_id": "6a1e87561d7bb097a0a67953",
  "Package": "tongfen",
  "Type": "Package",
  "Title": "Make Data Based on Different Geographies Comparable",
  "Version": "0.3.6",
  "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.1",
  "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": "2025-05-02 03:58:47 UTC",
  "RemoteUrl": "https://github.com/mountainmath/tongfen",
  "RemoteRef": "HEAD",
  "RemoteSha": "d54af086226ca6b8ec43dea76643ee95de445e24",
  "Packaged": {
    "Date": "2026-06-02 07:29:37 UTC",
    "User": "root"
  },
  "Author": "Jens von Bergmann [aut, cre] (creator and maintainer)",
  "Maintainer": "Jens von Bergmann <jens@mountainmath.ca>",
  "MD5sum": "7331a316558f7f56fd1064bb7bce1ae2",
  "_user": "mountainmath",
  "_type": "src",
  "_file": "tongfen_0.3.6.tar.gz",
  "_fileid": "091e291fac1d8008b52dcbeb26d205eb1a906e3590efa5a621a74b07ae668e1f",
  "_filesize": 2208380,
  "_sha256": "091e291fac1d8008b52dcbeb26d205eb1a906e3590efa5a621a74b07ae668e1f",
  "_created": "2026-06-02T07:29:37.000Z",
  "_published": "2026-06-02T07:33:42.058Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79020932667,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7351582791"
    },
    {
      "job": 79020932687,
      "time": 161,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7351578929"
    },
    {
      "job": 79020932675,
      "time": 202,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7351581451"
    },
    {
      "job": 79020932662,
      "time": 165,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7351570961"
    },
    {
      "job": 79020343917,
      "time": 235,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7351528588"
    },
    {
      "job": 79020932683,
      "time": 131,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7351569760"
    },
    {
      "job": 79020932673,
      "time": 114,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7351564353"
    },
    {
      "job": 79020932700,
      "time": 126,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7351568290"
    },
    {
      "job": 79020932670,
      "time": 110,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7351563191"
    }
  ],
  "_buildurl": "https://github.com/r-universe/mountainmath/actions/runs/26805025121",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/mountainmath/tongfen",
  "_commit": {
    "id": "d54af086226ca6b8ec43dea76643ee95de445e24",
    "author": "Jens von Bergmann <jens@mountainmath.ca>",
    "committer": "Jens von Bergmann <jens@mountainmath.ca>",
    "message": "cleanup readme\n",
    "time": 1746158327
  },
  "_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"
    }
  ],
  "_owner": "mountainmath",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_stars": 28,
  "_contributors": [
    {
      "user": "mountainmath",
      "count": 141,
      "uuid": 1395960
    }
  ],
  "_userbio": {
    "uuid": 1395960,
    "type": "user",
    "name": "Jens von Bergmann"
  },
  "_downloads": {
    "count": 186,
    "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"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.6",
      "date": "2026-06-02T07:32:19.000Z",
      "distro": "noble",
      "commit": "d54af086226ca6b8ec43dea76643ee95de445e24",
      "fileid": "dfbce263c696fd39abe1487a068dba360aa820de6ba52dc6efd37ffe1a01077f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/26805025121"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.6",
      "date": "2026-06-02T07:32:11.000Z",
      "distro": "noble",
      "commit": "d54af086226ca6b8ec43dea76643ee95de445e24",
      "fileid": "f34da04417d673414009c38dee5b50c85c2765567f468e19102d0663b2e086e1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/26805025121"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.6",
      "date": "2026-06-02T07:32:23.000Z",
      "commit": "d54af086226ca6b8ec43dea76643ee95de445e24",
      "fileid": "c08b7d4a0d39151eb838a6993ec81a8aed302f3f994b1764f9d5b2f56358394b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/26805025121"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.6",
      "date": "2026-06-02T07:31:47.000Z",
      "commit": "d54af086226ca6b8ec43dea76643ee95de445e24",
      "fileid": "d869ec8013bbdfafaa085a62d39dae403769bceb1b307d722ae7292af541feee",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/26805025121"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.6",
      "date": "2026-06-02T07:32:07.000Z",
      "commit": "d54af086226ca6b8ec43dea76643ee95de445e24",
      "fileid": "e25a3911b8b19e8efd4bf24d0014db6292bc1090b108ca2f27f2eb9a32eceece",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/26805025121"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.6",
      "date": "2026-06-02T07:31:09.000Z",
      "commit": "d54af086226ca6b8ec43dea76643ee95de445e24",
      "fileid": "9343b1e242480bc0b379e3e0793173daec41162b221426b548e6a3993d052ff0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/26805025121"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.6",
      "date": "2026-06-02T07:31:25.000Z",
      "commit": "d54af086226ca6b8ec43dea76643ee95de445e24",
      "fileid": "dc2e205e0a3bff4e1fbd0929700d6bc51a1e457bbed2662cae5d840320655058",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/26805025121"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.6",
      "date": "2026-06-02T07:31:09.000Z",
      "commit": "d54af086226ca6b8ec43dea76643ee95de445e24",
      "fileid": "16fc6fa60c4cd7255ef3dcfaa56a4a9a03d49bafbf9e0c6318db5cd2a3f69e9e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/26805025121"
    }
  ]
}