{
  "_id": "6a5329899b92047c28d56047",
  "Package": "dbc",
  "Title": "Dictionary-Based Cleaning",
  "Version": "0.0.0.9000",
  "Authors@R": "person(given = \"Patrick\",\nfamily = \"Barks\",\nrole = c(\"aut\", \"cre\"),\nemail = \"patrick.barks@epicentre.msf.org\")",
  "Description": "Tools for dictionary-based data cleaning.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Remotes": [
    "epicentre-msf/queryr"
  ],
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://epicentre-msf.r-universe.dev",
  "Date/Publication": "2026-05-13 08:46:45 UTC",
  "RemoteUrl": "https://github.com/epicentre-msf/dbc",
  "RemoteRef": "HEAD",
  "RemoteSha": "756c98eb867ac387d382e35ae45d872591acd148",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-07-12 05:40:25 UTC",
    "User": "root"
  },
  "Author": "Patrick Barks [aut, cre]",
  "Maintainer": "Patrick Barks <patrick.barks@epicentre.msf.org>",
  "_user": "epicentre-msf",
  "_type": "src",
  "_file": "dbc_0.0.0.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/5944d01990964cfc99b4adff9f7a10044a4bbee427a2a4b1052a643951b55b88",
  "_filesize": 153885,
  "_sha256": "5944d01990964cfc99b4adff9f7a10044a4bbee427a2a4b1052a643951b55b88",
  "_expires": "2026-10-20T05:43:35.000Z",
  "_created": "2026-07-12T05:40:25.000Z",
  "_published": "2026-07-12T05:43:37.210Z",
  "_jobs": [
    {
      "job": 86619992084,
      "time": 138,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8256571649"
    },
    {
      "job": 86619992090,
      "time": 150,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8256573415"
    },
    {
      "job": 86619992066,
      "time": 91,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8256565652"
    },
    {
      "job": 86619992063,
      "time": 124,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8256569914"
    },
    {
      "job": 86619759821,
      "time": 174,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8256552674"
    },
    {
      "job": 86619992118,
      "time": 108,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8256567715"
    },
    {
      "job": 86619992119,
      "time": 75,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8256563506"
    },
    {
      "job": 86619992102,
      "time": 88,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8256564985"
    },
    {
      "job": 86619992125,
      "time": 81,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8256564051"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/epicentre-msf/actions/runs/29181440201",
  "_status": "success",
  "_upstream": "https://github.com/epicentre-msf/dbc",
  "_commit": {
    "id": "756c98eb867ac387d382e35ae45d872591acd148",
    "author": "Patrick Barks <patrick.barks@gmail.com>",
    "committer": "Patrick Barks <patrick.barks@gmail.com>",
    "message": "ignore stuff\n",
    "time": 1778662005
  },
  "_maintainer": {
    "name": "Patrick Barks",
    "email": "patrick.barks@epicentre.msf.org",
    "login": "patrickbarks",
    "description": "",
    "uuid": 12620847
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "janitor",
      "role": "Imports"
    },
    {
      "package": "lubridate",
      "role": "Imports"
    },
    {
      "package": "stringi",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "queryr",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "epicentre-msf",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2026-04",
      "n": 3
    },
    {
      "week": "2026-14",
      "n": 3
    },
    {
      "week": "2026-16",
      "n": 1
    },
    {
      "week": "2026-20",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 3,
  "_contributors": [
    {
      "user": "patrickbarks",
      "count": 32,
      "uuid": 12620847
    }
  ],
  "_userbio": {
    "uuid": 19820047,
    "type": "organization",
    "name": "Epicentre MSF",
    "followers": 44
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/dbc"
  },
  "_devurl": "https://github.com/epicentre-msf/dbc",
  "_searchresults": 9,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/dbc.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "check_categorical",
    "check_dates",
    "check_numeric",
    "clean_categorical",
    "clean_dates",
    "clean_numeric",
    "parse_dates",
    "std_text"
  ],
  "_datasets": [
    {
      "name": "clean_categ1",
      "title": "A cleaning dictionary for categorical variables in example dataset 'll1'",
      "object": "clean_categ1",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "variable",
        "value",
        "replacement",
        "new"
      ],
      "rows": 7,
      "table": true,
      "tojson": true
    },
    {
      "name": "clean_dates1",
      "title": "A cleaning dictionary for categorical variables in example dataset 'll1'",
      "object": "clean_dates1",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "id",
        "variable",
        "value",
        "date",
        "replacement",
        "query"
      ],
      "rows": 12,
      "table": true,
      "tojson": true
    },
    {
      "name": "clean_num1",
      "title": "A cleaning dictionary for numeric variables in example dataset 'll1'",
      "object": "clean_num1",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "variable",
        "value",
        "replacement",
        "new"
      ],
      "rows": 4,
      "table": true,
      "tojson": true
    },
    {
      "name": "dict_categ1",
      "title": "A dictionary of allowed values for categorical variables in example dataset 'll1'",
      "object": "dict_categ1",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "variable",
        "value"
      ],
      "rows": 13,
      "table": true,
      "tojson": true
    },
    {
      "name": "ll1",
      "title": "An example messy dataset to clean",
      "object": "ll1",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "id",
        "age",
        "age_unit",
        "sex",
        "status",
        "contacts",
        "date_onset",
        "date_admit",
        "date_exit",
        "exit_status"
      ],
      "rows": 7,
      "table": true,
      "tojson": true
    },
    {
      "name": "ll2",
      "title": "An example messy dataset to clean, an extension of 'll1'",
      "object": "ll2",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "id",
        "age",
        "age_unit",
        "sex",
        "status",
        "contacts",
        "date_onset",
        "date_admit",
        "date_exit",
        "exit_status"
      ],
      "rows": 10,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "check_categorical",
      "title": "Produce a dictionary of non-valid categorical values within a dataset, for use in subsequent data cleaning",
      "topics": [
        "check_categorical"
      ]
    },
    {
      "page": "check_dates",
      "title": "Produce a dictionary of non-valid date values within a dataset, for use in subsequent data cleaning",
      "topics": [
        "check_dates"
      ]
    },
    {
      "page": "check_numeric",
      "title": "Produce a dictionary of non-valid numeric values within a dataset, for use in subsequent data cleaning",
      "topics": [
        "check_numeric"
      ]
    },
    {
      "page": "clean_categ1",
      "title": "A cleaning dictionary for categorical variables in example dataset 'll1'",
      "topics": [
        "clean_categ1"
      ]
    },
    {
      "page": "clean_categorical",
      "title": "Clean categorical variables within a dataset based on a dictionary of value-replacement pairs",
      "topics": [
        "clean_categorical"
      ]
    },
    {
      "page": "clean_dates",
      "title": "Clean date variables within a dataset based on a dictionary of value-replacement pairs",
      "topics": [
        "clean_dates"
      ]
    },
    {
      "page": "clean_dates1",
      "title": "A cleaning dictionary for categorical variables in example dataset 'll1'",
      "topics": [
        "clean_dates1"
      ]
    },
    {
      "page": "clean_num1",
      "title": "A cleaning dictionary for numeric variables in example dataset 'll1'",
      "topics": [
        "clean_num1"
      ]
    },
    {
      "page": "clean_numeric",
      "title": "Clean numeric variables within a dataset based on a dictionary of value-replacement pairs",
      "topics": [
        "clean_numeric"
      ]
    },
    {
      "page": "dict_categ1",
      "title": "A dictionary of allowed values for categorical variables in example dataset 'll1'",
      "topics": [
        "dict_categ1"
      ]
    },
    {
      "page": "ll1",
      "title": "An example messy dataset to clean",
      "topics": [
        "ll1"
      ]
    },
    {
      "page": "ll2",
      "title": "An example messy dataset to clean, an extension of 'll1'",
      "topics": [
        "ll2"
      ]
    },
    {
      "page": "parse_dates",
      "title": "Parse dates",
      "topics": [
        "parse_dates"
      ]
    },
    {
      "page": "std_text",
      "title": "Standardize text prior to matching to account for minor variation in character case, spacing, punctuation, or use of accents",
      "topics": [
        "std_text"
      ]
    }
  ],
  "_readme": "https://github.com/epicentre-msf/dbc/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dplyr",
    "generics",
    "glue",
    "hms",
    "janitor",
    "lifecycle",
    "lubridate",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "queryr",
    "R6",
    "rlang",
    "snakecase",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "timechange",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_score": 3.255272505103306,
  "_indexed": true,
  "_nocasepkg": "dbc",
  "_universes": [
    "epicentre-msf",
    "patrickbarks"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-07-12T05:42:35.000Z",
      "distro": "resolute",
      "commit": "756c98eb867ac387d382e35ae45d872591acd148",
      "fileid": "https://r2.ropensci.org/6c3c0b6105dc4e2f41b915b7e69462736ece16ac182967f7201219a5cb560b76",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epicentre-msf/actions/runs/29181440201"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.0.0.9000",
      "date": "2026-07-12T05:42:47.000Z",
      "distro": "resolute",
      "commit": "756c98eb867ac387d382e35ae45d872591acd148",
      "fileid": "https://r2.ropensci.org/65d8379177a1127fcb776d702ada41c75905d9d189cd0d7668267b8f22100111",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epicentre-msf/actions/runs/29181440201"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-07-12T05:41:56.000Z",
      "commit": "756c98eb867ac387d382e35ae45d872591acd148",
      "fileid": "https://r2.ropensci.org/0c1926ce686f09cd8af802bab4fa6d0562deb38a5fa5c8eaece0981331c8802d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epicentre-msf/actions/runs/29181440201"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.0.0.9000",
      "date": "2026-07-12T05:42:23.000Z",
      "commit": "756c98eb867ac387d382e35ae45d872591acd148",
      "fileid": "https://r2.ropensci.org/86ca9db980ae59d16cf247c1f51b65e07949648e2cdd762a036275181047230d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epicentre-msf/actions/runs/29181440201"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.0.0.9000",
      "date": "2026-07-12T05:42:28.000Z",
      "commit": "756c98eb867ac387d382e35ae45d872591acd148",
      "fileid": "https://r2.ropensci.org/b3426d775f9f0f5227e40b39e2849202f91ff815cb5727a2bad9e6dd92ec603c",
      "status": "success",
      "buildurl": "https://github.com/r-universe/epicentre-msf/actions/runs/29181440201"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-07-12T05:41:30.000Z",
      "commit": "756c98eb867ac387d382e35ae45d872591acd148",
      "fileid": "https://r2.ropensci.org/208e52373235b68a502d64ed3c6db946a6db1d8e72c59067ff5b2a1decc1c763",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epicentre-msf/actions/runs/29181440201"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-07-12T05:41:36.000Z",
      "commit": "756c98eb867ac387d382e35ae45d872591acd148",
      "fileid": "https://r2.ropensci.org/1561bc6e5c77d7650adb6545364ecda943e03e04515e35ad5e41f67327327a25",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epicentre-msf/actions/runs/29181440201"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.0.0.9000",
      "date": "2026-07-12T05:41:34.000Z",
      "commit": "756c98eb867ac387d382e35ae45d872591acd148",
      "fileid": "https://r2.ropensci.org/7a94f84bf4d18f1a7611acf6c4d12f4660cad46a118285cae96509ed32735809",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/epicentre-msf/actions/runs/29181440201"
    }
  ]
}