{
  "_id": "6a4a043d9ce196b5e5a91a41",
  "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-07-05 07:10:20 UTC",
    "User": "root"
  },
  "Author": "Jens von Bergmann [aut, cre] (creator and maintainer)",
  "Maintainer": "Jens von Bergmann <jens@mountainmath.ca>",
  "_user": "mountainmath",
  "_type": "src",
  "_file": "tongfen_0.3.7.tar.gz",
  "_fileid": "https://r2.ropensci.org/d66edc68e8e247fc04d96cf712dd1efa249f60003b6fd0f3f92cf84501bdc815",
  "_filesize": 2217189,
  "_sha256": "d66edc68e8e247fc04d96cf712dd1efa249f60003b6fd0f3f92cf84501bdc815",
  "_expires": "2026-10-13T07:14:03.000Z",
  "_created": "2026-07-05T07:10:20.000Z",
  "_published": "2026-07-05T07:14:05.413Z",
  "_jobs": [
    {
      "job": 85201902510,
      "time": 175,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8089384522"
    },
    {
      "job": 85201902537,
      "time": 167,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8089383567"
    },
    {
      "job": 85201902512,
      "time": 83,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8089370207"
    },
    {
      "job": 85201902508,
      "time": 93,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8089371612"
    },
    {
      "job": 85201640506,
      "time": 240,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8089358028"
    },
    {
      "job": 85201902504,
      "time": 170,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8089383668"
    },
    {
      "job": 85201902520,
      "time": 102,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8089373189"
    },
    {
      "job": 85201902528,
      "time": 108,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8089374250"
    },
    {
      "job": 85201902524,
      "time": 105,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8089374190"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/mountainmath/actions/runs/28732857216",
  "_status": "success",
  "_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
  },
  "_distro": "resolute",
  "_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",
    "followers": 257
  },
  "_downloads": {
    "count": 524,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tongfen"
  },
  "_devurl": "https://github.com/mountainmath/tongfen",
  "_pkgdown": "https://mountainmath.github.io/tongfen/",
  "_searchresults": 106,
  "_rbuild": "4.6.1",
  "_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",
    "LICENSE",
    "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"
    },
    {
      "version": "0.3.7",
      "date": "2026-06-05"
    }
  ],
  "_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.870403905279027,
  "_indexed": true,
  "_nocasepkg": "tongfen",
  "_universes": [
    "mountainmath"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.7",
      "date": "2026-07-05T07:13:04.000Z",
      "distro": "resolute",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "https://r2.ropensci.org/3e50885632c41f7b824648a75b6859a493a967737bed101dd5a4d95f861077af",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/28732857216"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.3.7",
      "date": "2026-07-05T07:13:00.000Z",
      "distro": "resolute",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "https://r2.ropensci.org/d70c7d6c9f3a3f82c0bea0786aaf2d2db5b7b3225c465fa4bc4f3e84f842acb6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/28732857216"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.7",
      "date": "2026-07-05T07:11:48.000Z",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "https://r2.ropensci.org/9b8a809547327fa9c8323d6cf2d8c878917a8964dcde1b73fcbcb9b2805f983b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/28732857216"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.3.7",
      "date": "2026-07-05T07:11:56.000Z",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "https://r2.ropensci.org/3f448f50e51c25cc2ffbb4b377df5a15ce4af189538fa5f0f07100c628dc0421",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/28732857216"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.7",
      "date": "2026-07-05T07:13:31.000Z",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "https://r2.ropensci.org/897bc984c01c2876ee9b89e719038f1517e0ad62f6649b45e0828eb999da02ed",
      "status": "success",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/28732857216"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.7",
      "date": "2026-07-05T07:11:43.000Z",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "https://r2.ropensci.org/e6ba6502be5bf5f145256478def24e55f488b9a8174c3ac033702ce7164362bb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/28732857216"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.7",
      "date": "2026-07-05T07:11:52.000Z",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "https://r2.ropensci.org/43fcd9d880b880e45f0b340354cf716a96a49aa93804ef789897c1abd118d747",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/28732857216"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.3.7",
      "date": "2026-07-05T07:11:50.000Z",
      "commit": "1797cf47081602b89bcd1ec842c499a537f1a328",
      "fileid": "https://r2.ropensci.org/49e1beaf796796ccb7ab509ca20fc7a9831fa7e77409a3306f4413aa46b0c6f6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/mountainmath/actions/runs/28732857216"
    }
  ]
}