{
  "_id": "6affc2614c685b5adf82a080",
  "Package": "tongfen",
  "Type": "Package",
  "Title": "Make Data Based on Different Geographies Comparable",
  "Version": "0.4.0",
  "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",
  "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/roxygen2/version": "8.1.0",
  "Packaged": {
    "Date": "2026-11-20 03:41:51 UTC",
    "User": "root"
  },
  "Author": "Jens von Bergmann [aut, cre] (creator and maintainer)",
  "Maintainer": "Jens von Bergmann <jens@mountainmath.ca>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-20 00:10:02 UTC",
  "RemoteUrl": "https://github.com/cran/tongfen",
  "RemoteRef": "HEAD",
  "RemoteSha": "7e70dab84acf1160f1dd1ec47ea1c75ad31e0544",
  "_user": "cran",
  "_type": "src",
  "_file": "tongfen_0.4.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/6ccb5c0bd486cef5e8b9718c0994150d29e956ac5ce9bc2fdff61e689f450f6c",
  "_filesize": 2321290,
  "_sha256": "6ccb5c0bd486cef5e8b9718c0994150d29e956ac5ce9bc2fdff61e689f450f6c",
  "_expires": "2027-02-28T03:45:35.000Z",
  "_created": "2026-11-20T03:41:51.000Z",
  "_published": "2026-11-20T03:45:36.907Z",
  "_upstream": "https://github.com/cran/tongfen",
  "_status": "success",
  "_maintainer": {
    "name": "Jens von Bergmann",
    "email": "jens@mountainmath.ca",
    "login": "mountainmath",
    "description": "",
    "uuid": 1395960
  },
  "_jobs": [
    {
      "job": 136066827069,
      "time": 177,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14599268562"
    },
    {
      "job": 136066827092,
      "time": 185,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14598594797"
    },
    {
      "job": 136065575996,
      "time": 210,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14598444202"
    },
    {
      "job": 136066827036,
      "time": 136,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "14598823723"
    },
    {
      "job": 136066827051,
      "time": 114,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "14598249747"
    },
    {
      "job": 136066827064,
      "time": 121,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "14598329805"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/44668981028",
  "_commit": {
    "id": "7e70dab84acf1160f1dd1ec47ea1c75ad31e0544",
    "author": "Jens von Bergmann <jens@mountainmath.ca>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.4.0\n",
    "time": 1795133402
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "version": ">= 1.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": "nanoparquet",
      "role": "Imports"
    },
    {
      "package": "tools",
      "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.2.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-23",
      "n": 1
    },
    {
      "week": "2026-35",
      "n": 1
    },
    {
      "week": "2026-41",
      "n": 1
    },
    {
      "week": "2026-47",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.3.7",
      "date": "2026-06-05"
    },
    {
      "name": "0.3.8",
      "date": "2026-08-28"
    },
    {
      "name": "0.3.9",
      "date": "2026-10-05"
    },
    {
      "name": "0.4.0",
      "date": "2026-11-20"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "mountainmath",
      "count": 8,
      "uuid": 1395960
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 637,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 565,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/tongfen"
  },
  "_devurl": "https://github.com/mountainmath/tongfen",
  "_pkgdown": "https://mountainmath.github.io/tongfen/",
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/tongfen.html",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/mountainmath/tongfen",
  "_realowner": "mountainmath",
  "_cranurl": false,
  "_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"
    },
    {
      "version": "0.3.8",
      "date": "2026-08-28"
    },
    {
      "version": "0.3.9",
      "date": "2026-10-05"
    },
    {
      "version": "0.4.0",
      "date": "2026-11-20"
    }
  ],
  "_authors": [
    {
      "name": "Jens von Bergmann",
      "email": "jens@mountainmath.ca",
      "role": [
        "aut",
        "cre"
      ]
    }
  ],
  "_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_correspondence_us_census",
    "get_tongfen_us_census",
    "meta_for_additive_variables",
    "meta_for_ca_census_vectors",
    "proportional_reaggregate",
    "tongfen_aggregate",
    "tongfen_anomaly_joins",
    "tongfen_ca_census_ct",
    "tongfen_detect_anomalies",
    "tongfen_estimate",
    "tongfen_estimate_ca_census",
    "tongfen_join_correspondence",
    "tongfen_join_regions",
    "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 Canadian 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 integrity",
      "topics": [
        "check_tongfen_areas"
      ]
    },
    {
      "page": "check_tongfen_single_areas",
      "title": "Check geographic integrity",
      "topics": [
        "check_tongfen_single_areas"
      ]
    },
    {
      "page": "estimate_tongfen_correspondence",
      "title": "Generate tongfen correspondence for list of geographies",
      "topics": [
        "estimate_tongfen_correspondence"
      ]
    },
    {
      "page": "estimate_tongfen_single_correspondence",
      "title": "Generate tongfen 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": "Tongfen 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_correspondence_us_census",
      "title": "Get correspondence table for US census geographies",
      "topics": [
        "get_tongfen_correspondence_us_census"
      ]
    },
    {
      "page": "get_tongfen_us_census",
      "title": "Get US census data for several censuses on a common 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 Canadian 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_anomaly_joins",
      "title": "Determine regions to join to correct for likely geocoding anomalies",
      "topics": [
        "tongfen_anomaly_joins"
      ]
    },
    {
      "page": "tongfen_ca_census_ct",
      "title": "Canadian census CT level tongfen via identifier matching",
      "topics": [
        "tongfen_ca_census_ct"
      ]
    },
    {
      "page": "tongfen_detect_anomalies",
      "title": "Detect likely geocoding anomalies in timelines on a common geography",
      "topics": [
        "tongfen_detect_anomalies"
      ]
    },
    {
      "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_join_correspondence",
      "title": "Join regions in a correspondence",
      "topics": [
        "tongfen_join_correspondence"
      ]
    },
    {
      "page": "tongfen_join_regions",
      "title": "Join regions in data on a common geography",
      "topics": [
        "tongfen_join_regions"
      ]
    },
    {
      "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://github.com/cran/tongfen/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/cran/tongfen/raw/HEAD/README.md",
  "_rundeps": [
    "bit",
    "bit64",
    "class",
    "classInt",
    "cli",
    "clipr",
    "cpp11",
    "crayon",
    "DBI",
    "dplyr",
    "e1071",
    "generics",
    "glue",
    "hms",
    "KernSmooth",
    "lifecycle",
    "magrittr",
    "nanoparquet",
    "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-07-24 03:10:02",
      "modified": "2026-10-05 07:12:42",
      "commits": 2
    },
    {
      "source": "tongfen.Rmd",
      "filename": "tongfen.html",
      "title": "General TongFen",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Population change"
      ],
      "created": "2020-11-04 10:00:02",
      "modified": "2026-10-05 07:12:42",
      "commits": 3
    },
    {
      "source": "tongfen_anomalies.Rmd",
      "filename": "tongfen_anomalies.html",
      "title": "Geocoding anomalies in TongFen timelines",
      "author": "Jens von Bergmann",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Population timelines for Toronto",
        "Detecting anomalies",
        "Joining regions",
        "Tuning",
        "Anomalies in TongFen data"
      ],
      "created": "2026-10-05 07:12:42",
      "modified": "2026-10-05 07:12:42",
      "commits": 1
    },
    {
      "source": "polling_districts.Rmd",
      "filename": "polling_districts.html",
      "title": "Polling Districts",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2020-11-04 10:00:02",
      "modified": "2021-07-24 03:10:02",
      "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-11-04 10:00:02",
      "modified": "2026-08-28 18:56:08",
      "commits": 3
    },
    {
      "source": "tongfen_us.Rmd",
      "filename": "tongfen_us.html",
      "title": "TongFen for US census data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Bridging to the 2020 census",
        "Notes on the common geography"
      ],
      "created": "2020-11-04 10:00:02",
      "modified": "2026-08-28 18:56:08",
      "commits": 2
    }
  ],
  "_score": 4.079181246047625,
  "_indexed": false,
  "_nocasepkg": "tongfen",
  "_universes": [
    "cran"
  ],
  "_indexurl": "https://mountainmath.r-universe.dev/tongfen",
  "_previous": "0.3.9",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-11-20T03:44:23.000Z",
      "distro": "resolute",
      "commit": "7e70dab84acf1160f1dd1ec47ea1c75ad31e0544",
      "fileid": "https://r2.ropensci.org/8e4159a44f8542b4686762845c147e9d98430be08570afc710644f35cfb7b4b9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44668981028"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.4.0",
      "date": "2026-11-20T03:44:38.000Z",
      "distro": "resolute",
      "commit": "7e70dab84acf1160f1dd1ec47ea1c75ad31e0544",
      "fileid": "https://r2.ropensci.org/f32e8e1969cd04f175f8f753cee1a2c34a4df65bc4af2e89145294b65025b462",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44668981028"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.4.0",
      "date": "2026-11-20T03:44:20.000Z",
      "commit": "7e70dab84acf1160f1dd1ec47ea1c75ad31e0544",
      "fileid": "https://r2.ropensci.org/d74a23806abd19982d98230edd02a74c7f4c3ae683304d6529e7f1dc9b7350c3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44668981028"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-11-20T03:43:05.000Z",
      "commit": "7e70dab84acf1160f1dd1ec47ea1c75ad31e0544",
      "fileid": "https://r2.ropensci.org/31d8395a94975bf7306405cd2132dad9fb244e1f441e677732be6ad6a974d832",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44668981028"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.4.0",
      "date": "2026-11-20T03:43:20.000Z",
      "commit": "7e70dab84acf1160f1dd1ec47ea1c75ad31e0544",
      "fileid": "https://r2.ropensci.org/00b3442a048b024264887a1fc6f1fc535ce920d51eff9e7c7da948925881de2f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/44668981028"
    }
  ]
}