{
  "_id": "6ab766a999f7aa8c6aa3024b",
  "Package": "cstidy",
  "Title": "Helpful Functions for Cleaning Surveillance Data",
  "Version": "2026.8.21",
  "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-08-26 21:51:22 UTC",
  "RemoteUrl": "https://github.com/niphr/cstidy",
  "RemoteRef": "HEAD",
  "RemoteSha": "1bfb159e796a5d4b43db4ab7944960c1dd23cf05",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-09-26 06:27:19 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.8.21.tar.gz",
  "_fileid": "https://r2.ropensci.org/175a3463fe91fe1d2c04429182216fbf9dda9d8ef5086eb4f8cffd947e844d1e",
  "_filesize": 608735,
  "_sha256": "175a3463fe91fe1d2c04429182216fbf9dda9d8ef5086eb4f8cffd947e844d1e",
  "_expires": "2027-01-04T06:31:03.000Z",
  "_created": "2026-09-26T06:27:19.000Z",
  "_published": "2026-09-26T06:31:05.010Z",
  "_jobs": [
    {
      "job": 108353913033,
      "time": 180,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10899738290"
    },
    {
      "job": 108353913016,
      "time": 155,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10899673551"
    },
    {
      "job": 108353913020,
      "time": 148,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10900112074"
    },
    {
      "job": 108353913038,
      "time": 175,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10899294994"
    },
    {
      "job": 108353425908,
      "time": 210,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10899922654"
    },
    {
      "job": 108353912991,
      "time": 137,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "10900565135"
    },
    {
      "job": 108353913097,
      "time": 91,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "10900585503"
    },
    {
      "job": 108353913087,
      "time": 93,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "10899589347"
    },
    {
      "job": 108353913022,
      "time": 69,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "10899524434"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/niphr/actions/runs/36223625077",
  "_status": "success",
  "_upstream": "https://github.com/niphr/cstidy",
  "_commit": {
    "id": "1bfb159e796a5d4b43db4ab7944960c1dd23cf05",
    "author": "Richard Aubrey White <hello@rwhite.no>",
    "committer": "Richard Aubrey White <hello@rwhite.no>",
    "message": "Pick up the gate fix for a package with no lints\n",
    "time": 1787781082
  },
  "_maintainer": {
    "name": "Richard Aubrey White",
    "email": "hello@rwhite.no",
    "login": "raubreywhite",
    "orcid": "0000-0002-6747-1726",
    "twitter": "@raubreywhite",
    "description": "Applied infectious diseases statistician. Head of @norsyss within @folkehelseinstituttet \n",
    "uuid": 1532091
  },
  "_distro": "resolute",
  "_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-44",
      "n": 3
    },
    {
      "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
    }
  ],
  "_tags": [],
  "_topics": [
    "csverse"
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "raubreywhite",
      "count": 95,
      "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": 513,
    "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.1",
  "_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"
    }
  ],
  "_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"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2026.8.21",
      "date": "2026-09-26T06:30:05.000Z",
      "distro": "resolute",
      "commit": "1bfb159e796a5d4b43db4ab7944960c1dd23cf05",
      "fileid": "https://r2.ropensci.org/cae8e4652fa13289a38e6bbedb082abbde9286b53f0c4f59f09d3a6bd00963d1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/36223625077"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2026.8.21",
      "date": "2026-09-26T06:29:50.000Z",
      "distro": "resolute",
      "commit": "1bfb159e796a5d4b43db4ab7944960c1dd23cf05",
      "fileid": "https://r2.ropensci.org/150153277f8b40c7f8e7984dfae4b46f74f08431bbda8d47e4544ec1f5d627a9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/36223625077"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2026.8.21",
      "date": "2026-09-26T06:29:32.000Z",
      "commit": "1bfb159e796a5d4b43db4ab7944960c1dd23cf05",
      "fileid": "https://r2.ropensci.org/f1fe514f707cde90dd5adbda2892aba68d2402e2d4730b489ab5dba627a60ea3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/36223625077"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2026.8.21",
      "date": "2026-09-26T06:29:47.000Z",
      "commit": "1bfb159e796a5d4b43db4ab7944960c1dd23cf05",
      "fileid": "https://r2.ropensci.org/df3d7df5157331c4e54b1d0f7aea23e56c0d752dc5fe5aeef7996e479de94b8a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/36223625077"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2026.8.21",
      "date": "2026-09-26T06:29:54.000Z",
      "commit": "1bfb159e796a5d4b43db4ab7944960c1dd23cf05",
      "fileid": "https://r2.ropensci.org/3d41af0787a661d1a4fedb49be246822699ce329a09c110b6913d62b653af8df",
      "status": "success",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/36223625077"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2026.8.21",
      "date": "2026-09-26T06:28:28.000Z",
      "commit": "1bfb159e796a5d4b43db4ab7944960c1dd23cf05",
      "fileid": "https://r2.ropensci.org/af998209de3ce48013f06299c15f8d7c104add81710886801c4f5f6b1fe909e7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/36223625077"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2026.8.21",
      "date": "2026-09-26T06:28:35.000Z",
      "commit": "1bfb159e796a5d4b43db4ab7944960c1dd23cf05",
      "fileid": "https://r2.ropensci.org/e8da01d2475e4c68587c8e414b0da2ebf406ba39595aab69a57ad9ee06e2c494",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/36223625077"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2026.8.21",
      "date": "2026-09-26T06:28:26.000Z",
      "commit": "1bfb159e796a5d4b43db4ab7944960c1dd23cf05",
      "fileid": "https://r2.ropensci.org/d7a49592fe6ab3328fba0007cc6e24983f6ab5ee8fc42e0e141043284ab5678d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/36223625077"
    }
  ]
}