{
  "_id": "6a463d4d6ff6f23575547ad6",
  "Package": "cstidy",
  "Title": "Helpful Functions for Cleaning Surveillance Data",
  "Version": "2026.7.1",
  "Authors@R": "c(\nperson(c(\"Richard\",\"Aubrey\"), \"White\", email = \"hello@rwhite.no\", role = c(\"aut\", \"cre\"), comment = c(ORCID = \"0000-0002-6747-1726\"))\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)",
  "RoxygenNote": "7.3.2",
  "VignetteBuilder": "knitr",
  "Config/Needs/website": "niphr/cstemplate",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://niphr.r-universe.dev",
  "Date/Publication": "2026-07-02 08:44:06 UTC",
  "RemoteUrl": "https://github.com/niphr/cstidy",
  "RemoteRef": "HEAD",
  "RemoteSha": "5e37fd790db8317860c106042371143cd4338bea",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-02 10:21:22 UTC",
    "User": "root"
  },
  "Author": "Richard Aubrey White [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-6747-1726>)",
  "Maintainer": "Richard Aubrey White <hello@rwhite.no>",
  "MD5sum": "30e0c62bab10ce96c5655eb9e2c9a891",
  "_user": "niphr",
  "_type": "src",
  "_file": "cstidy_2026.7.1.tar.gz",
  "_fileid": "923ccd4e314e2e66cb3be3bddff3fbc8dfc4dd2e8d289f5c156330e110fff3ed",
  "_filesize": 566241,
  "_sha256": "923ccd4e314e2e66cb3be3bddff3fbc8dfc4dd2e8d289f5c156330e110fff3ed",
  "_created": "2026-07-02T10:21:22.000Z",
  "_published": "2026-07-02T10:28:29.548Z",
  "_distro": "resolute",
  "_jobs": [
    {
      "job": 84747205866,
      "time": 163,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8035819230"
    },
    {
      "job": 84747205881,
      "time": 198,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8035831822"
    },
    {
      "job": 84747205840,
      "time": 112,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8035901663"
    },
    {
      "job": 84747205773,
      "time": 149,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8035906303"
    },
    {
      "job": 84746612902,
      "time": 193,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8035754020"
    },
    {
      "job": 84747205809,
      "time": 144,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8035811815"
    },
    {
      "job": 84747205813,
      "time": 91,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "8035790410"
    },
    {
      "job": 84747205824,
      "time": 136,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "8035808493"
    },
    {
      "job": 84747205797,
      "time": 98,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "NOTE",
      "artifact": "8035793702"
    }
  ],
  "_buildurl": "https://github.com/r-universe/niphr/actions/runs/28582680714",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/niphr/cstidy",
  "_commit": {
    "id": "5e37fd790db8317860c106042371143cd4338bea",
    "author": "Richard Aubrey White <hello@rwhite.no>",
    "committer": "Richard Aubrey White <hello@rwhite.no>",
    "message": "Add set_csfmt_rts_data_v3 to the pkgdown reference index\n",
    "time": 1782981846
  },
  "_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
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "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-34",
      "n": 2
    },
    {
      "week": "2025-44",
      "n": 3
    },
    {
      "week": "2025-52",
      "n": 4
    },
    {
      "week": "2026-27",
      "n": 12
    }
  ],
  "_tags": [],
  "_topics": [
    "csverse"
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "raubreywhite",
      "count": 70,
      "uuid": 1532091
    },
    {
      "user": "chizapoth",
      "count": 1,
      "uuid": 32897643
    }
  ],
  "_userbio": {
    "uuid": 244534951,
    "type": "organization",
    "name": "Norwegian Institute of Public Health - R codebases",
    "followers": 2,
    "description": "The Norwegian Institute of Public Health is a government agency under the Ministry of Health and Care Services."
  },
  "_downloads": {
    "count": 670,
    "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/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_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)",
      "topics": [
        "heal_time_csfmt_rts_data_v1"
      ]
    },
    {
      "page": "heal_time_csfmt_rts_data_v2",
      "title": "Provides corresponding healed times",
      "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_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",
      "concept": [
        "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_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-06-30 06:06:53",
      "commits": 3
    },
    {
      "source": "cstidy.Rmd",
      "filename": "cstidy.html",
      "title": "Introduction",
      "engine": "knitr::rmarkdown",
      "headings": [
        "csfmt_rts_data_v2",
        "Smart assignment",
        "Summary",
        "Identifying the data structure of one column"
      ],
      "created": "2023-01-16 10:42:17",
      "modified": "2026-06-30 06:06:53",
      "commits": 5
    }
  ],
  "_score": 4.2552725051033065,
  "_indexed": false,
  "_nocasepkg": "cstidy",
  "_universes": [
    "niphr"
  ],
  "_indexurl": "https://raubreywhite.r-universe.dev/cstidy",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2026.7.1",
      "date": "2026-07-02T10:23:48.000Z",
      "distro": "resolute",
      "commit": "5e37fd790db8317860c106042371143cd4338bea",
      "fileid": "1dafada437f8754f33307eed8fc0ef92efb3c831615527f708f6be9c5828f6bd",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28582680714"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2026.7.1",
      "date": "2026-07-02T10:24:23.000Z",
      "distro": "resolute",
      "commit": "5e37fd790db8317860c106042371143cd4338bea",
      "fileid": "258e1f8e3f62bd82901983b9bf07ff9d2e33b2e709d115b5f03663007ff6115c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28582680714"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2026.7.1",
      "date": "2026-07-02T10:27:32.000Z",
      "commit": "5e37fd790db8317860c106042371143cd4338bea",
      "fileid": "4056049ed70452a352d100732bd9ed06f22986093da7c8c5f417ae86dcf6cf07",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28582680714"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2026.7.1",
      "date": "2026-07-02T10:27:34.000Z",
      "commit": "5e37fd790db8317860c106042371143cd4338bea",
      "fileid": "01e3b7d16bc1f6708299d34f68b5b37361e11ce9b14e448464c81c852007282e",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28582680714"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2026.7.1",
      "date": "2026-07-02T10:24:02.000Z",
      "commit": "5e37fd790db8317860c106042371143cd4338bea",
      "fileid": "7b73d123f1384e1a59a1d53fc2efec1cdfc58b813790bae0fc88423a2cd493d3",
      "status": "success",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28582680714"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2026.7.1",
      "date": "2026-07-02T10:22:30.000Z",
      "commit": "5e37fd790db8317860c106042371143cd4338bea",
      "fileid": "8f47f0f6e72f052ff2842ee8f612457705acb9f1f370845b14d6c5ffe96cb49f",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28582680714"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2026.7.1",
      "date": "2026-07-02T10:23:13.000Z",
      "commit": "5e37fd790db8317860c106042371143cd4338bea",
      "fileid": "d7334acd4d1d074659f461c023166136da6571104277f91406dbfbecc027b106",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28582680714"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2026.7.1",
      "date": "2026-07-02T10:22:37.000Z",
      "commit": "5e37fd790db8317860c106042371143cd4338bea",
      "fileid": "6228c53075d88f1bcd61316d071131eea7fc54210ec086e97d671fdee3d7680c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/niphr/actions/runs/28582680714"
    }
  ]
}