{
  "_id": "6b09933075ab5e50c76820dc",
  "Package": "cstidy",
  "Title": "Helpful Functions for Cleaning Surveillance Data",
  "Version": "2026.11.27",
  "Authors@R": "c(\nperson(\ngiven = c(\"Richard\", \"Aubrey\"),\nfamily = \"White\",\nemail = \"hello@rwhite.no\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-6747-1726\")\n),\nperson(\ngiven = \"Folkehelseinstituttet\",\nrole = \"cph\"\n)\n)",
  "Description": "Helpful functions for the cleaning and manipulation of\nsurveillance data, especially with regards to the creation and\nvalidation of panel data from individual level surveillance\ndata.",
  "License": "MIT + file LICENSE",
  "URL": "https://niphr.github.io/cstidy/, https://github.com/niphr/cstidy",
  "BugReports": "https://github.com/niphr/cstidy/issues",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Config/Needs/website": "niphr/cstemplate",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://niphr.r-universe.dev",
  "Date/Publication": "2026-11-27 11:21:30 UTC",
  "RemoteUrl": "https://github.com/niphr/cstidy",
  "RemoteRef": "HEAD",
  "RemoteSha": "7a50505f339fb07871a5611c14fc59b5784ad6ab",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-27 14:23:35 UTC",
    "User": "root"
  },
  "Author": "Richard Aubrey White [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-6747-1726>),\nFolkehelseinstituttet [cph]",
  "Maintainer": "Richard Aubrey White <hello@rwhite.no>",
  "_user": "niphr",
  "_type": "src",
  "_file": "cstidy_2026.11.27.tar.gz",
  "_fileid": "https://r2.ropensci.org/c8143304b130f2b33539dc2675cfd31d7e389e71771ff74833cdf1348cdf74f8",
  "_filesize": 606895,
  "_sha256": "c8143304b130f2b33539dc2675cfd31d7e389e71771ff74833cdf1348cdf74f8",
  "_expires": "2027-03-07T14:26:54.000Z",
  "_created": "2026-11-27T14:23:35.000Z",
  "_published": "2026-11-27T14:26:56.517Z",
  "_upstream": "https://github.com/niphr/cstidy",
  "_status": "success",
  "_maintainer": {
    "name": "Richard Aubrey White",
    "email": "hello@rwhite.no",
    "login": "raubreywhite",
    "orcid": "0000-0002-6747-1726",
    "twitter": "@raubreywhite",
    "description": "Statistician. Head of @norsyss within @folkehelseinstituttet \n",
    "uuid": 1532091
  },
  "_jobs": [
    {
      "job": 140561706374,
      "time": 150,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15204988587"
    },
    {
      "job": 140561706333,
      "time": 157,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15205483560"
    },
    {
      "job": 140561706351,
      "time": 99,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "15206356782"
    },
    {
      "job": 140561706295,
      "time": 112,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15205752811"
    },
    {
      "job": 140559521692,
      "time": 252,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15205453138"
    },
    {
      "job": 140561706258,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "15205533379"
    },
    {
      "job": 140561706292,
      "time": 116,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "15204663842"
    },
    {
      "job": 140561706418,
      "time": 80,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "15206356726"
    },
    {
      "job": 140561706428,
      "time": 83,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "15205967496"
    }
  ],
  "_buildurl": "https://github.com/r-universe/niphr/actions/runs/46014890742",
  "_commit": {
    "id": "7a50505f339fb07871a5611c14fc59b5784ad6ab",
    "author": "Richard Aubrey White <hello@rwhite.no>",
    "committer": "Richard Aubrey White <hello@rwhite.no>",
    "message": "Pass the lint gate of the shared CI workflow\n\nFix all 76 lints of the cstemplate@5a1cbd0e lint step in the code itself.\nInternal helpers split the five functions over cyclomatic complexity 15.\nBump the version to 2026.11.27.\n",
    "time": 1795778490
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "csdata",
      "role": "Imports"
    },
    {
      "package": "cstime",
      "role": "Imports"
    },
    {
      "package": "crayon",
      "role": "Imports"
    },
    {
      "package": "digest",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rstudioapi",
      "role": "Suggests"
    },
    {
      "package": "glue",
      "role": "Suggests"
    },
    {
      "package": "gt",
      "role": "Suggests"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "purrr",
      "role": "Suggests"
    }
  ],
  "_owner": "niphr",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-52",
      "n": 4
    },
    {
      "week": "2026-27",
      "n": 12
    },
    {
      "week": "2026-30",
      "n": 7
    },
    {
      "week": "2026-32",
      "n": 4
    },
    {
      "week": "2026-34",
      "n": 10
    },
    {
      "week": "2026-35",
      "n": 4
    },
    {
      "week": "2026-48",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "csverse"
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "raubreywhite",
      "count": 96,
      "uuid": 1532091
    },
    {
      "user": "chizapoth",
      "count": 1,
      "uuid": 32897643
    }
  ],
  "_userbio": {
    "uuid": 244534951,
    "type": "organization",
    "name": "Norwegian Institute of Public Health - R codebases",
    "followers": 3,
    "description": "The Norwegian Institute of Public Health is a government agency under the Ministry of Health and Care Services."
  },
  "_downloads": {
    "count": 680,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cstidy"
  },
  "_devurl": "https://github.com/niphr/cstidy",
  "_pkgdown": "https://niphr.github.io/cstidy/",
  "_searchresults": 0,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/cstidy.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_realowner": "raubreywhite",
  "_cranurl": false,
  "_releases": [
    {
      "version": "2023.5.24",
      "date": "2023-05-24"
    },
    {
      "version": "2025.10.27",
      "date": "2025-10-27"
    }
  ],
  "_authors": [
    {
      "name": "Richard Aubrey White",
      "email": "hello@rwhite.no",
      "orcid": "0000-0002-6747-1726",
      "role": [
        "aut",
        "cre"
      ]
    },
    {
      "name": "Folkehelseinstituttet",
      "role": [
        "cph"
      ]
    }
  ],
  "_exports": [
    "csfmt_rts_data_v1",
    "csfmt_rts_data_v2",
    "csfmt_rts_data_v3",
    "expand_time_to",
    "generate_test_data",
    "heal_time_csfmt_rts_data_v1",
    "heal_time_csfmt_rts_data_v2",
    "identify_data_structure",
    "remove_class_csfmt_rts_data",
    "set_csfmt_rts_data_v1",
    "set_csfmt_rts_data_v2",
    "set_csfmt_rts_data_v3",
    "unique_time_series"
  ],
  "_datasets": [
    {
      "name": "nor_covid19_cases_by_time_location_csfmt_rts_v1",
      "title": "Covid-19 data for PCR-confirmed cases in Norway (nation and county)",
      "object": "nor_covid19_cases_by_time_location_csfmt_rts_v1",
      "class": [
        "csfmt_rts_data_v1",
        "data.table",
        "data.frame"
      ],
      "fields": [
        "granularity_time",
        "granularity_geo",
        "country_iso3",
        "location_code",
        "border",
        "age",
        "sex",
        "isoyear",
        "isoweek",
        "isoyearweek",
        "season",
        "seasonweek",
        "calyear",
        "calmonth",
        "calyearmonth",
        "date",
        "covid19_cases_testdate_n",
        "covid19_cases_testdate_pr100000"
      ],
      "rows": 11028,
      "table": true,
      "tojson": true
    },
    {
      "name": "nor_covid19_icu_and_hospitalization_csfmt_rts_v1",
      "title": "Norwegian Covid-19 data for ICU and hospitalization",
      "object": "nor_covid19_icu_and_hospitalization_csfmt_rts_v1",
      "class": [
        "csfmt_rts_data_v1",
        "data.table",
        "data.frame"
      ],
      "fields": [
        "granularity_time",
        "granularity_geo",
        "country_iso3",
        "location_code",
        "border",
        "age",
        "sex",
        "isoyear",
        "isoweek",
        "isoyearweek",
        "season",
        "seasonweek",
        "calyear",
        "calmonth",
        "calyearmonth",
        "date",
        "icu_with_positive_pcr_n",
        "hospitalization_with_covid19_as_primary_cause_n"
      ],
      "rows": 919,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "expand_time_to",
      "title": "Expand time to",
      "concept": [
        "csfmt_rts_data"
      ],
      "topics": [
        "expand_time_to"
      ]
    },
    {
      "page": "generate_test_data",
      "title": "Generate test data",
      "topics": [
        "generate_test_data"
      ]
    },
    {
      "page": "heal_time_csfmt_rts_data_v1",
      "title": "Provides corresponding healed times (deprecated)",
      "concept": [
        "time healing lookups"
      ],
      "topics": [
        "heal_time_csfmt_rts_data_v1"
      ]
    },
    {
      "page": "heal_time_csfmt_rts_data_v2",
      "title": "Provides corresponding healed times (deprecated)",
      "concept": [
        "time healing lookups"
      ],
      "topics": [
        "heal_time_csfmt_rts_data_v2"
      ]
    },
    {
      "page": "identify_data_structure",
      "title": "Hash the data structure of a dataset for a given column",
      "concept": [
        "csfmt_rts_data"
      ],
      "topics": [
        "identify_data_structure",
        "identify_data_structure.csfmt_rts_data_v2",
        "identify_data_structure.tbl_Microsoft SQL Server"
      ]
    },
    {
      "page": "nor_covid19_cases_by_time_location_csfmt_rts_v1",
      "title": "Covid-19 data for PCR-confirmed cases in Norway (nation and county)",
      "topics": [
        "nor_covid19_cases_by_time_location_csfmt_rts_v1"
      ]
    },
    {
      "page": "nor_covid19_icu_and_hospitalization_csfmt_rts_v1",
      "title": "Norwegian Covid-19 data for ICU and hospitalization",
      "topics": [
        "nor_covid19_icu_and_hospitalization_csfmt_rts_v1"
      ]
    },
    {
      "page": "remove_class_csfmt_rts_data",
      "title": "Remove class csfmt_rts_data_*",
      "concept": [
        "csfmt_rts_data"
      ],
      "topics": [
        "remove_class_csfmt_rts_data"
      ]
    },
    {
      "page": "set_csfmt_rts_data_v1",
      "title": "Convert data.table to csfmt_rts_data_v1 (deprecated)",
      "concept": [
        "csfmt format converters",
        "csfmt_rts_data"
      ],
      "topics": [
        "csfmt_rts_data_v1",
        "set_csfmt_rts_data_v1"
      ]
    },
    {
      "page": "set_csfmt_rts_data_v2",
      "title": "Convert data.table to csfmt_rts_data_v2 (deprecated)",
      "concept": [
        "csfmt format converters",
        "csfmt_rts_data"
      ],
      "topics": [
        "csfmt_rts_data_v2",
        "set_csfmt_rts_data_v2"
      ]
    },
    {
      "page": "set_csfmt_rts_data_v3",
      "title": "Convert a data.table to csfmt_rts_data_v3 (clean csfmt; explicit healing)",
      "concept": [
        "csfmt format converters",
        "csfmt_rts_data"
      ],
      "topics": [
        "csfmt_rts_data_v3",
        "set_csfmt_rts_data_v3"
      ]
    },
    {
      "page": "unique_time_series",
      "title": "Unique time series",
      "concept": [
        "csfmt_rts_data"
      ],
      "topics": [
        "unique_time_series"
      ]
    }
  ],
  "_pkglogo": "https://github.com/niphr/cstidy/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/niphr/cstidy/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "crayon",
    "csdata",
    "cstime",
    "data.table",
    "digest",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "stringi",
    "stringr",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "benchmarks.Rmd",
      "filename": "benchmarks.html",
      "title": "Benchmarks",
      "engine": "knitr::rmarkdown",
      "headings": [
        "set_csfmt_rts_data_v1"
      ],
      "created": "2023-04-25 10:38:08",
      "modified": "2025-10-27 10:41:13",
      "commits": 5
    },
    {
      "source": "csfmt_rts_data_v2.Rmd",
      "filename": "csfmt_rts_data_v2.html",
      "title": "Data format (csfmt_rts_data_v2)",
      "engine": "knitr::rmarkdown",
      "headings": [
        "csfmt_rts_data_v2",
        "Style",
        "Ordering of variables",
        "Time",
        "Approved events",
        "Location",
        "Ages",
        "Sex",
        "Unified columns",
        "Smart assignment",
        "Context-specific columns",
        "Examples",
        "In action",
        "Expand time to",
        "Time series",
        "Summary",
        "Identifying the data structure of one column",
        "Reference (Location)"
      ],
      "created": "2023-12-28 17:50:07",
      "modified": "2026-08-21 04:53:40",
      "commits": 7
    },
    {
      "source": "cstidy.Rmd",
      "filename": "cstidy.html",
      "title": "Introduction",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What cstidy is for",
        "Which format to use",
        "Three things to know before you move to v3",
        "v3 derives fewer columns, and removes none",
        "v3 is weekly only",
        "csdb cannot check a v3 table, though it can store one",
        "Where cstidy sits",
        "Where to read next",
        "csfmt_rts_data_v2",
        "Smart assignment",
        "Summary",
        "Identifying the data structure of one column"
      ],
      "created": "2023-01-16 10:42:17",
      "modified": "2026-08-21 04:53:40",
      "commits": 7
    }
  ],
  "_score": 4.498310553789601,
  "_indexed": false,
  "_nocasepkg": "cstidy",
  "_universes": [
    "niphr"
  ],
  "_previous": "2026.8.21",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2026.11.27",
      "date": "2026-11-27T14:25:47.000Z",
      "distro": "resolute",
      "commit": "7a50505f339fb07871a5611c14fc59b5784ad6ab",
      "fileid": "https://r2.ropensci.org/8311f84ba9f1a8d9d3a8c3a5dd56380f592b19e033b6a2497c653c31b5355e3f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/46014890742"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "2026.11.27",
      "date": "2026-11-27T14:25:52.000Z",
      "distro": "resolute",
      "commit": "7a50505f339fb07871a5611c14fc59b5784ad6ab",
      "fileid": "https://r2.ropensci.org/1a25ca2cd1eb0fd2e2fa070b65e6d450865973b3b601becba95faa531d5bc1be",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/46014890742"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2026.11.27",
      "date": "2026-11-27T14:25:10.000Z",
      "commit": "7a50505f339fb07871a5611c14fc59b5784ad6ab",
      "fileid": "https://r2.ropensci.org/61d72afa709061bd4dddd4b243c48643c5b87bd980e993f31a6a5e0447f3c3fc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/46014890742"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "2026.11.27",
      "date": "2026-11-27T14:25:17.000Z",
      "commit": "7a50505f339fb07871a5611c14fc59b5784ad6ab",
      "fileid": "https://r2.ropensci.org/d977a9365a2f10dce78bfb973902b672744aba5c53c27e29f867c8859456c816",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/46014890742"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2026.11.27",
      "date": "2026-11-27T14:25:50.000Z",
      "commit": "7a50505f339fb07871a5611c14fc59b5784ad6ab",
      "fileid": "https://r2.ropensci.org/48b9c744e6612fe9e6b49e65520ad4ed5652a8a790c0f353121b2be998a1cb8b",
      "status": "success",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/46014890742"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2026.11.27",
      "date": "2026-11-27T14:25:05.000Z",
      "commit": "7a50505f339fb07871a5611c14fc59b5784ad6ab",
      "fileid": "https://r2.ropensci.org/cd39daaf56ae53d5cc6bd6c0d82abc98b259ff75bb5c0710a04fb73f6d9c6263",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/46014890742"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2026.11.27",
      "date": "2026-11-27T14:24:39.000Z",
      "commit": "7a50505f339fb07871a5611c14fc59b5784ad6ab",
      "fileid": "https://r2.ropensci.org/877b6f5e258d13e1d4c4a2bac35f3816f134c5e13b93e8a1edf8253ceadb2982",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/46014890742"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "2026.11.27",
      "date": "2026-11-27T14:24:44.000Z",
      "commit": "7a50505f339fb07871a5611c14fc59b5784ad6ab",
      "fileid": "https://r2.ropensci.org/09a1641779b51472e16247ab87edcaf169c193d18fa743b7b01cc1326e17b260",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/46014890742"
    }
  ]
}