{
  "_id": "6a214140cd65a98ecbd2a6f4",
  "Package": "canregtools",
  "Title": "Analyzing Population-Based Cancer Registry Data",
  "Version": "0.2.10",
  "Authors@R": "person(\"Qiong\", \"Chen\", , \"chenq08@126.com\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0003-2401-0046\",\naffiliation = \"Department of Cancer Epidemiology, The Affiliated\nCancer Hospital of Zhengzhou University & Henan Cancer Hospital,\nHenan Cancer Registry in China\"))",
  "Description": "Tools for cleaning, analyzing, visualizing, and reporting\ndata from Population-Based Cancer Registries (PBCRs), with\nstandardized workflows for filtering, selecting, and\nrestructuring data, designed for routine registry operations.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/gigu003/canregtools,\nhttps://gigu003.github.io/canregtools/,\nhttps://canregtools.chenq.site",
  "BugReports": "https://github.com/gigu003/canregtools/issues",
  "Date": "2023-12-01",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://gigu003.r-universe.dev",
  "Date/Publication": "2026-01-05 06:18:56 UTC",
  "RemoteUrl": "https://github.com/gigu003/canregtools",
  "RemoteRef": "HEAD",
  "RemoteSha": "3fa8d2bb32fe4c7e16453757ac27855177c672a6",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-04 09:07:13 UTC",
    "User": "root"
  },
  "Author": "Qiong Chen [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0003-2401-0046>, affiliation: Department of\nCancer Epidemiology, The Affiliated Cancer Hospital of Zhengzhou\nUniversity & Henan Cancer Hospital, Henan Cancer Registry in China)",
  "Maintainer": "Qiong Chen <chenq08@126.com>",
  "MD5sum": "0a8860298d86a62d4a3b43779fb09692",
  "_user": "gigu003",
  "_type": "src",
  "_file": "canregtools_0.2.10.tar.gz",
  "_fileid": "9235893da908208ce619cfc5812103845243a883a1f3030e28855c738370dcf2",
  "_filesize": 525034,
  "_sha256": "9235893da908208ce619cfc5812103845243a883a1f3030e28855c738370dcf2",
  "_created": "2026-06-04T09:07:13.000Z",
  "_published": "2026-06-04T09:11:28.880Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79486211471,
      "time": 168,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7407500126"
    },
    {
      "job": 79486211438,
      "time": 161,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407497903"
    },
    {
      "job": 79486211403,
      "time": 211,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7407501987"
    },
    {
      "job": 79486211483,
      "time": 148,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407485549"
    },
    {
      "job": 79485706181,
      "time": 184,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407441991"
    },
    {
      "job": 79486211445,
      "time": 107,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407480526"
    },
    {
      "job": 79486211424,
      "time": 143,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7407492180"
    },
    {
      "job": 79486211376,
      "time": 150,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7407497315"
    },
    {
      "job": 79486211432,
      "time": 141,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7407491141"
    }
  ],
  "_buildurl": "https://github.com/r-universe/gigu003/actions/runs/26942042787",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/gigu003/canregtools",
  "_commit": {
    "id": "3fa8d2bb32fe4c7e16453757ac27855177c672a6",
    "author": "Qiong Chen <chenq08@126.com>",
    "committer": "Qiong Chen <chenq08@126.com>",
    "message": "modify the create_report function\n",
    "time": 1767593936
  },
  "_maintainer": {
    "name": "Qiong Chen",
    "email": "chenq08@126.com",
    "login": "gigu003",
    "description": "",
    "uuid": 19233929,
    "orcid": "0000-0003-2401-0046"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "role": "Imports"
    },
    {
      "package": "readxl",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "gigu003",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-28",
      "n": 5
    },
    {
      "week": "2025-30",
      "n": 3
    },
    {
      "week": "2025-48",
      "n": 14
    },
    {
      "week": "2026-02",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "cancer-epidemiology",
    "cancer-registration",
    "statistical-analysis",
    "visualization"
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "gigu003",
      "count": 44,
      "uuid": 19233929
    }
  ],
  "_userbio": {
    "uuid": 19233929,
    "type": "user",
    "name": "Qiong Chen"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/canregtools"
  },
  "_devurl": "https://github.com/gigu003/canregtools",
  "_pkgdown": "https://gigu003.github.io/canregtools/",
  "_searchresults": 4,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/canregtools.html",
    "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",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "add_labels",
    "add_var_labels",
    "ageadjust",
    "calc_age",
    "calc_ax",
    "classify_areacode",
    "classify_areacode2",
    "classify_childhood",
    "classify_icd10",
    "classify_morp",
    "classify_topo",
    "combine_tp",
    "count_canreg",
    "cr_clean",
    "cr_filter",
    "cr_merge",
    "cr_reframe",
    "cr_select",
    "cr_write",
    "create_age_rate",
    "create_asr",
    "create_quality",
    "create_report",
    "create_site",
    "cumrate",
    "cumrisk",
    "cutage",
    "del_dict_files",
    "draw_barchart",
    "draw_dumbbell",
    "draw_linechart",
    "draw_pyramid",
    "drop_others",
    "drop_total",
    "esti_fbswicd",
    "esti_pop",
    "expand_age_pop",
    "expand_lx",
    "get_pop",
    "get_stdpop",
    "ls_attrs",
    "ls_dict",
    "ls_dict_files",
    "ls_vars",
    "lt",
    "read_canreg",
    "show_registry",
    "tidy_age",
    "tidy_sex",
    "tidy_var",
    "truncrate",
    "write_areacode",
    "write_registry"
  ],
  "_datasets": [
    {
      "name": "canregs",
      "title": "Example Population-Based Cancer Registry Data ('canregs')",
      "object": "canregs",
      "class": [
        "canregs",
        "list"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "quality",
      "title": "Quality Indicators from the China Cancer Registry Annual Report",
      "object": "quality",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "year",
        "area_type",
        "cancer",
        "mv",
        "dco",
        "mi"
      ],
      "rows": 168,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "add_labels",
      "title": "Add variable labels for data set.",
      "topics": [
        "add_labels"
      ]
    },
    {
      "page": "add_var_labels",
      "title": "Add Variable Labels with Units",
      "topics": [
        "add_var_labels"
      ]
    },
    {
      "page": "ageadjust",
      "title": "Calculate the age standardized rate using the direct method",
      "topics": [
        "ageadjust"
      ]
    },
    {
      "page": "calc_age",
      "title": "Calculate the actual age in completed years between two dates",
      "topics": [
        "calc_age"
      ]
    },
    {
      "page": "calc_ax",
      "title": "Calculate ax for life table",
      "topics": [
        "calc_ax"
      ]
    },
    {
      "page": "canregs",
      "title": "Example Population-Based Cancer Registry Data ('canregs')",
      "topics": [
        "canregs"
      ]
    },
    {
      "page": "classify_areacode",
      "title": "Classify codes for the administrative divisions of China",
      "topics": [
        "classify_areacode"
      ]
    },
    {
      "page": "classify_areacode2",
      "title": "Classify codes for the administrative divisions of China",
      "topics": [
        "classify_areacode2"
      ]
    },
    {
      "page": "classify_childhood",
      "title": "Classify childhood cancer according to the ICCC3 standards",
      "topics": [
        "classify_childhood"
      ]
    },
    {
      "page": "classify_icd10",
      "title": "Classify ICD10 codes to cancer categories",
      "topics": [
        "classify_icd10"
      ]
    },
    {
      "page": "classify_morp",
      "title": "Classify ICD-O-3 morphology codes into categories",
      "topics": [
        "classify_morp"
      ]
    },
    {
      "page": "classify_topo",
      "title": "Classify ICD-O-3 topography codes into categories",
      "topics": [
        "classify_topo"
      ]
    },
    {
      "page": "combine_tp",
      "title": "Sum named numeric vectors",
      "topics": [
        "combine_tp"
      ]
    },
    {
      "page": "count_canreg",
      "title": "Count and classify 'canreg' data",
      "topics": [
        "count_canreg",
        "count_canreg.canreg",
        "count_canreg.canregs"
      ]
    },
    {
      "page": "cr_clean",
      "title": "Clean canreg data.",
      "topics": [
        "cr_clean",
        "cr_clean.canreg",
        "cr_clean.canregs",
        "cr_clean.FBcases",
        "cr_clean.POP",
        "cr_clean.SWcases"
      ]
    },
    {
      "page": "cr_filter",
      "title": "Filter cases from objects of class 'canreg' or 'canregs'",
      "topics": [
        "cr_filter",
        "cr_filter.age_rates",
        "cr_filter.asrs",
        "cr_filter.canreg",
        "cr_filter.canregs",
        "cr_filter.default",
        "cr_filter.qualities"
      ]
    },
    {
      "page": "cr_merge",
      "title": "Merge elements from objects of class 'canregs', 'fbswicds', or 'asrs'",
      "topics": [
        "cr_merge",
        "cr_merge.age_rates",
        "cr_merge.asrs",
        "cr_merge.canregs",
        "cr_merge.fbswicds",
        "cr_merge.qualities",
        "cr_merge.summaries"
      ]
    },
    {
      "page": "cr_reframe",
      "title": "Reframe data of class canregs or fbswicds",
      "topics": [
        "cr_reframe",
        "cr_reframe.canregs",
        "cr_reframe.fbswicds"
      ]
    },
    {
      "page": "cr_select",
      "title": "Select elements from objects with class '\"canregs\"', or '\"fbswicds\"'",
      "topics": [
        "cr_select",
        "cr_select.age_rates",
        "cr_select.asrs",
        "cr_select.canregs",
        "cr_select.fbswicds",
        "cr_select.summaries"
      ]
    },
    {
      "page": "cr_write",
      "title": "Clean canreg data.",
      "topics": [
        "cr_write",
        "cr_write.canreg",
        "cr_write.canregs"
      ]
    },
    {
      "page": "create_age_rate",
      "title": "Calculate age specific rate",
      "topics": [
        "create_age_rate",
        "create_age_rate.canreg",
        "create_age_rate.canregs",
        "create_age_rate.fbswicd",
        "create_age_rate.fbswicds"
      ]
    },
    {
      "page": "create_asr",
      "title": "Calculate age-standardized rate (ASR)",
      "topics": [
        "create_asr",
        "create_asr.canreg",
        "create_asr.canregs",
        "create_asr.fbswicd",
        "create_asr.fbswicds"
      ]
    },
    {
      "page": "create_quality",
      "title": "Calculate quality indicators",
      "topics": [
        "create_quality",
        "create_quality.canreg",
        "create_quality.canregs",
        "create_quality.fbswicd",
        "create_quality.fbswicds"
      ]
    },
    {
      "page": "create_report",
      "title": "Render standardized cancer registry reports from built-in templates",
      "topics": [
        "create_report",
        "create_report.canreg",
        "create_report.canregs"
      ]
    },
    {
      "page": "create_site",
      "title": "Count",
      "topics": [
        "create_site"
      ]
    },
    {
      "page": "cumrate",
      "title": "Calculate the cumulative incidence or mortality rate",
      "topics": [
        "cumrate"
      ]
    },
    {
      "page": "cumrisk",
      "title": "Calculate the cumulative risk",
      "topics": [
        "cumrisk"
      ]
    },
    {
      "page": "cutage",
      "title": "Group ages into categories",
      "topics": [
        "cutage"
      ]
    },
    {
      "page": "del_dict_files",
      "title": "Delete a dictionary file from canregtools config",
      "topics": [
        "del_dict_files"
      ]
    },
    {
      "page": "draw_barchart",
      "title": "Draw Grouped Bar Charts with Facets",
      "topics": [
        "draw_barchart"
      ]
    },
    {
      "page": "draw_dumbbell",
      "title": "Plot dumbbell chart",
      "topics": [
        "draw_dumbbell"
      ]
    },
    {
      "page": "draw_linechart",
      "title": "Draw a Custom Line Chart Using Base R",
      "topics": [
        "draw_linechart"
      ]
    },
    {
      "page": "draw_pyramid",
      "title": "Plot a population pyramid",
      "topics": [
        "draw_pyramid"
      ]
    },
    {
      "page": "drop_others",
      "title": "Drop “other” cancer codes",
      "topics": [
        "drop_others"
      ]
    },
    {
      "page": "drop_total",
      "title": "Drop the total cancer",
      "topics": [
        "drop_total"
      ]
    },
    {
      "page": "esti_fbswicd",
      "title": "Estimate object of fbswicd",
      "topics": [
        "esti_fbswicd"
      ]
    },
    {
      "page": "esti_pop",
      "title": "Estimating population structure using interpolation method.",
      "topics": [
        "esti_pop"
      ]
    },
    {
      "page": "expand_age_pop",
      "title": "Expand population data from 5-year age groups to single-year ages",
      "topics": [
        "expand_age_pop"
      ]
    },
    {
      "page": "expand_lx",
      "title": "Expand a five-year abridged life table to a complete life table",
      "topics": [
        "expand_lx"
      ]
    },
    {
      "page": "get_pop",
      "title": "Subset or summarize population data",
      "topics": [
        "get_pop",
        "get_pop.canreg",
        "get_pop.canregs",
        "get_pop.fbswicd",
        "get_pop.fbswicds"
      ]
    },
    {
      "page": "get_stdpop",
      "title": "Get standardized population data",
      "topics": [
        "get_stdpop"
      ]
    },
    {
      "page": "ls_attrs",
      "title": "list built-in attributes name used in 'cr_reframe()'",
      "topics": [
        "ls_attrs"
      ]
    },
    {
      "page": "ls_dict",
      "title": "list dictionary used in package",
      "topics": [
        "ls_dict"
      ]
    },
    {
      "page": "ls_dict_files",
      "title": "List dictionary files used by canregtools",
      "topics": [
        "ls_dict_files"
      ]
    },
    {
      "page": "ls_vars",
      "title": "List variable names and their descriptions by category",
      "topics": [
        "ls_vars"
      ]
    },
    {
      "page": "lt",
      "title": "Construct a life table from age-specific mortality rates",
      "topics": [
        "lt"
      ]
    },
    {
      "page": "quality",
      "title": "Quality Indicators from the China Cancer Registry Annual Report",
      "topics": [
        "quality"
      ]
    },
    {
      "page": "read_canreg",
      "title": "Read cancer registration data",
      "topics": [
        "read_canreg"
      ]
    },
    {
      "page": "show_registry",
      "title": "Get the areacodes of the registry",
      "topics": [
        "show_registry"
      ]
    },
    {
      "page": "summary",
      "title": "Summary object of class 'canreg'",
      "topics": [
        "summary.canreg",
        "summary.canregs"
      ]
    },
    {
      "page": "tidy_age",
      "title": "Tidy age description",
      "topics": [
        "tidy_age"
      ]
    },
    {
      "page": "tidy_sex",
      "title": "Tidy gender variable",
      "topics": [
        "tidy_sex"
      ]
    },
    {
      "page": "tidy_var",
      "title": "Reformat variable values for Cancer Registration in China",
      "topics": [
        "tidy_var"
      ]
    },
    {
      "page": "truncrate",
      "title": "Calculate truncated age standardized rate",
      "topics": [
        "truncrate"
      ]
    },
    {
      "page": "write_areacode",
      "title": "Write custom six-digit administrative division codes to dictionary",
      "topics": [
        "write_areacode"
      ]
    },
    {
      "page": "write_registry",
      "title": "Write registry attributes to a user-defined dictionary",
      "topics": [
        "write_registry",
        "write_registry.character",
        "write_registry.data.frame",
        "write_registry.list",
        "write_registry.NULL"
      ]
    }
  ],
  "_pkglogo": "https://github.com/gigu003/canregtools/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/gigu003/canregtools/raw/HEAD/README.md",
  "_rundeps": [
    "cellranger",
    "cli",
    "cpp11",
    "crayon",
    "dplyr",
    "generics",
    "glue",
    "hms",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "purrr",
    "R6",
    "readxl",
    "rematch",
    "rlang",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_score": 2.3010299956639813,
  "_indexed": true,
  "_nocasepkg": "canregtools",
  "_universes": [
    "gigu003"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.10",
      "date": "2026-06-04T09:09:24.000Z",
      "distro": "noble",
      "commit": "3fa8d2bb32fe4c7e16453757ac27855177c672a6",
      "fileid": "c88f2ac219bef215e416b07573b362dd13f8185c9b9d596d88379d724a6cf691",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gigu003/actions/runs/26942042787"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.10",
      "date": "2026-06-04T09:09:22.000Z",
      "distro": "noble",
      "commit": "3fa8d2bb32fe4c7e16453757ac27855177c672a6",
      "fileid": "be1a0de197414e82e43f45c27225e606b860a34ab9b2351fb766983b316cb03a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gigu003/actions/runs/26942042787"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.10",
      "date": "2026-06-04T09:09:41.000Z",
      "commit": "3fa8d2bb32fe4c7e16453757ac27855177c672a6",
      "fileid": "0d8652e47e3d55ee8fa3f2a5628a6d4db0d3e860fbd84ece71d66d6e15c7f3cf",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gigu003/actions/runs/26942042787"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.10",
      "date": "2026-06-04T09:09:00.000Z",
      "commit": "3fa8d2bb32fe4c7e16453757ac27855177c672a6",
      "fileid": "8dd749666820fc3aab6d014f4c074c868d8eff2236480acf0ba11f914cced414",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gigu003/actions/runs/26942042787"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.10",
      "date": "2026-06-04T09:09:18.000Z",
      "commit": "3fa8d2bb32fe4c7e16453757ac27855177c672a6",
      "fileid": "52a8cc4af6666839ad6ea7c4a8545ff0427fba85ef801d6e461541e1b1db7d25",
      "status": "success",
      "buildurl": "https://github.com/r-universe/gigu003/actions/runs/26942042787"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.10",
      "date": "2026-06-04T09:08:31.000Z",
      "commit": "3fa8d2bb32fe4c7e16453757ac27855177c672a6",
      "fileid": "28e1b5a723f04fdbe65218375ee153239b93da64cd86e94ba0789321abe4c221",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gigu003/actions/runs/26942042787"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.10",
      "date": "2026-06-04T09:08:42.000Z",
      "commit": "3fa8d2bb32fe4c7e16453757ac27855177c672a6",
      "fileid": "8956cf1eb86575f7fd895c51674c855ca2466635f2037660383c88cf4f3e3651",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gigu003/actions/runs/26942042787"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.10",
      "date": "2026-06-04T09:08:27.000Z",
      "commit": "3fa8d2bb32fe4c7e16453757ac27855177c672a6",
      "fileid": "0642ea10ea36502fa33f23b2abf929d9a6f8a0e7d3b54cec49cf7b94e0685f4f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/gigu003/actions/runs/26942042787"
    }
  ]
}