{
  "_id": "6a195ce0acfb0bcc41de496e",
  "Package": "cellkeyperturbation",
  "Title": "Cell Key Perturbation",
  "Version": "3.0.0",
  "Authors@R": "c(\nperson(\"Iain\", \"Dove\", email = \"SMLHelp@ons.gov.uk\",\nrole = c(\"aut\", \"cph\")),\nperson(\"Ahmet\", \"Aydin\", email = \"SDC.Queries@ons.gov.uk\",\nrole = c(\"aut\", \"cre\")))",
  "Description": "Provides functions to generate frequency tables and apply\ncell key perturbation to protect against statistical disclosure\nin tabular outputs. The implemented methods are described in\n\"Cell Key Perturbation User Guide\"\n<https://github.com/ONSdigital/cell-key-perturbation-R/blob/main/documentation/SML_UserDoc_CKP_R.md>.\nDeveloped at the UK Office for National Statistics.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "LazyData": "true",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/ONSdigital/cell-key-perturbation-R",
  "BugReports": "https://github.com/ONSdigital/cell-key-perturbation-R/issues",
  "Repository": "https://onsdigital.r-universe.dev",
  "Date/Publication": "2026-05-21 10:52:49 UTC",
  "RemoteUrl": "https://github.com/onsdigital/cell-key-perturbation-r",
  "RemoteRef": "HEAD",
  "RemoteSha": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-29 08:11:36 UTC",
    "User": "root"
  },
  "Author": "Iain Dove [aut, cph],\nAhmet Aydin [aut, cre]",
  "Maintainer": "Ahmet Aydin <SDC.Queries@ons.gov.uk>",
  "MD5sum": "d57e5aabf9d84b155c1386f9ede9c587",
  "_user": "onsdigital",
  "_type": "src",
  "_file": "cellkeyperturbation_3.0.0.tar.gz",
  "_fileid": "5c8ca315871309f8c0e61e700dcd4396c4605ca1572e0bd0981b0baaec72f621",
  "_filesize": 172193,
  "_sha256": "5c8ca315871309f8c0e61e700dcd4396c4605ca1572e0bd0981b0baaec72f621",
  "_created": "2026-05-29T08:11:36.000Z",
  "_published": "2026-05-29T09:31:12.324Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78463180877,
      "time": 129,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7286168037"
    },
    {
      "job": 78463180800,
      "time": 127,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7286167642"
    },
    {
      "job": 78463180852,
      "time": 165,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7287512814"
    },
    {
      "job": 78463180806,
      "time": 169,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7287547979"
    },
    {
      "job": 78462823813,
      "time": 152,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7286130592"
    },
    {
      "job": 78463180814,
      "time": 102,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7286160190"
    },
    {
      "job": 78463180840,
      "time": 77,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7286152945"
    },
    {
      "job": 78463180812,
      "time": 78,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7286153641"
    },
    {
      "job": 78463180891,
      "time": 83,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7286154825"
    }
  ],
  "_buildurl": "https://github.com/r-universe/onsdigital/actions/runs/26626002610",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/onsdigital/cell-key-perturbation-r",
  "_commit": {
    "id": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
    "author": "Aydin <Ahmet.Aydin@ons.gov.uk>",
    "committer": "Aydin <Ahmet.Aydin@ons.gov.uk>",
    "message": "apply last changes to function documentations\n",
    "time": 1779360769
  },
  "_maintainer": {
    "name": "Ahmet Aydin",
    "email": "sdc.queries@ons.gov.uk"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "bigrquery",
      "role": "Suggests"
    },
    {
      "package": "DBI",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "onsdigital",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-42",
      "n": 1
    },
    {
      "week": "2025-48",
      "n": 1
    },
    {
      "week": "2025-49",
      "n": 1
    },
    {
      "week": "2026-02",
      "n": 1
    },
    {
      "week": "2026-05",
      "n": 1
    },
    {
      "week": "2026-10",
      "n": 1
    },
    {
      "week": "2026-17",
      "n": 2
    },
    {
      "week": "2026-18",
      "n": 1
    },
    {
      "week": "2026-21",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "v2.0.0",
      "date": "2025-11-26"
    }
  ],
  "_stars": 4,
  "_contributors": [
    {
      "user": "elinoreveritt",
      "count": 64,
      "uuid": 118985468
    },
    {
      "user": "aydin-ahmet",
      "count": 45,
      "uuid": 99877236
    },
    {
      "user": "iain-dove-ons",
      "count": 3,
      "uuid": 56999400
    }
  ],
  "_userbio": {
    "uuid": 6865137,
    "type": "organization",
    "name": "ONS Digital",
    "description": "We are the UK’s largest independent producer of official statistics and its recognised national statistical institute."
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cellkeyperturbation"
  },
  "_devurl": "https://github.com/onsdigital/cell-key-perturbation-r",
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/cellkeyperturbation.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"
  ],
  "_homeurl": "https://github.com/onsdigital/cell-key-perturbation-r",
  "_realowner": "onsdigital",
  "_cranurl": true,
  "_releases": [
    {
      "version": "3.0.0",
      "date": "2026-05-28"
    }
  ],
  "_exports": [
    "create_perturbed_table",
    "create_perturbed_table_bigquery",
    "generate_ptable_10_5_rule",
    "generate_random_rkey",
    "generate_test_data",
    "validate_inputs"
  ],
  "_datasets": [
    {
      "name": "micro",
      "title": "Example data (micro)",
      "object": "micro",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "record_key",
        "var1",
        "var2",
        "var3",
        "var4",
        "var5",
        "var6",
        "var7",
        "var8",
        "var9",
        "var10"
      ],
      "rows": 1000,
      "table": true,
      "tojson": true
    },
    {
      "name": "ptable_10_5",
      "title": "Perturbation table",
      "object": "ptable_10_5",
      "class": [
        "data.table",
        "data.frame"
      ],
      "fields": [
        "pcv",
        "ckey",
        "pvalue"
      ],
      "rows": 192000,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "check_for_na",
      "title": "Check perturbed table for missingness in tabulation variables",
      "topics": [
        "check_for_na"
      ]
    },
    {
      "page": "create_perturbed_table",
      "title": "Create a frequency table with cell key perturbation applied",
      "topics": [
        "create_perturbed_table"
      ]
    },
    {
      "page": "create_perturbed_table_bigquery",
      "title": "Create a perturbed frequency table in BigQuery and return it as a data frame",
      "topics": [
        "create_perturbed_table_bigquery"
      ]
    },
    {
      "page": "generate_ptable_10_5_rule",
      "title": "Generate ptable (10-5 rule)",
      "topics": [
        "generate_ptable_10_5_rule"
      ]
    },
    {
      "page": "generate_random_rkey",
      "title": "Generate and attach random record keys to microdata",
      "topics": [
        "generate_random_rkey"
      ]
    },
    {
      "page": "generate_record_key_from_ons_id",
      "title": "Generate Record Key from ONS ID",
      "topics": [
        "generate_record_key_from_ons_id"
      ]
    },
    {
      "page": "generate_test_data",
      "title": "Generate sample microdata",
      "topics": [
        "generate_test_data"
      ]
    },
    {
      "page": "micro",
      "title": "Example data (micro)",
      "topics": [
        "micro"
      ]
    },
    {
      "page": "ptable_10_5",
      "title": "Perturbation table",
      "topics": [
        "ptable_10_5"
      ]
    },
    {
      "page": "validate_inputs_bigquery",
      "title": "Validate Inputs Before Perturbation using BigQuery",
      "topics": [
        "validate_inputs_bigquery"
      ]
    }
  ],
  "_readme": "https://github.com/onsdigital/cell-key-perturbation-r/raw/HEAD/README.md",
  "_rundeps": [
    "data.table"
  ],
  "_vignettes": [
    {
      "source": "cellkeyperturbation.Rmd",
      "filename": "cellkeyperturbation.html",
      "title": "Cell Key Perturbation in R",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Summary",
        "BigQuery",
        "Terminology",
        "Requirements",
        "Microdata and Record Keys",
        "Perturbation Table (P-table)",
        "User Instructions",
        "Installing the SML method",
        "Using the SML method",
        "How to Use the Method in BigQuery",
        "Worked Example with Synthetic Data (data.table)",
        "Interpreting the Output",
        "Saving the Output",
        "Appendix - Help Pages",
        "Methodology",
        "Additional Information",
        "License"
      ],
      "created": "2026-04-20 17:23:43",
      "modified": "2026-05-20 15:35:32",
      "commits": 2
    }
  ],
  "_score": 5.556302500767288,
  "_indexed": true,
  "_nocasepkg": "cellkeyperturbation",
  "_universes": [
    "onsdigital"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.0.0",
      "date": "2026-05-29T08:13:45.000Z",
      "distro": "noble",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "69de240bf62d1f44877c40f9e34d4d58a0616725ca3189f725d04ab11c389f36",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/26626002610"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "3.0.0",
      "date": "2026-05-29T08:13:43.000Z",
      "distro": "noble",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "9a40378e183a02d6e58e290e881e3b97bb5cc81401efae5231e315c44031635d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/26626002610"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.0.0",
      "date": "2026-05-29T09:28:23.000Z",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "cf47a8f83bb2a9cccef7812c4eb8cd58364e1709951e88c01d051af3c26221d7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/26626002610"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "3.0.0",
      "date": "2026-05-29T09:30:14.000Z",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "b6dc47e0ca2bfc0fb630a9452ad24177a5e30ec04a132cf207953b6924542822",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/26626002610"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.0.0",
      "date": "2026-05-29T08:13:33.000Z",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "024dda2698e21157b7437e2cf19246ed262578984baf7d11a26a8a891b182b23",
      "status": "success",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/26626002610"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.0.0",
      "date": "2026-05-29T08:12:49.000Z",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "31c97b5f6084224ad66ec3ef1161c31ec82d7f058eff88dd7fab74b8360b8d91",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/26626002610"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.0.0",
      "date": "2026-05-29T08:12:50.000Z",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "719bdbd0ee8978098bbb46e92f5e3c52fe3ed71a5e2cb93c44518ffa7d546e63",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/26626002610"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "3.0.0",
      "date": "2026-05-29T08:12:55.000Z",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "4c853d36a21adb985746af318a5840e2c1b1530fbdd1ae6773339d3008d258fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/26626002610"
    }
  ]
}