{
  "_id": "6ac9f12bfe5cc25786e8316c",
  "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-10-10 07:43:10 UTC",
    "User": "root"
  },
  "Author": "Iain Dove [aut, cph],\nAhmet Aydin [aut, cre]",
  "Maintainer": "Ahmet Aydin <SDC.Queries@ons.gov.uk>",
  "_user": "onsdigital",
  "_type": "src",
  "_file": "cellkeyperturbation_3.0.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/d874efc384a300cdd4d70f7a861b171db4f410175d18dc320c4249582a0eed1f",
  "_filesize": 171472,
  "_sha256": "d874efc384a300cdd4d70f7a861b171db4f410175d18dc320c4249582a0eed1f",
  "_expires": "2027-01-18T08:02:49.000Z",
  "_created": "2026-10-10T07:43:10.000Z",
  "_published": "2026-10-10T08:02:51.475Z",
  "_buildurl": "https://github.com/r-universe/onsdigital/actions/runs/38035233543",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114164671357,
      "time": 114,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11663906307"
    },
    {
      "job": 114164671362,
      "time": 96,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11663561538"
    },
    {
      "job": 114164671373,
      "time": 97,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11663827993"
    },
    {
      "job": 114164671410,
      "time": 126,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11663374946"
    },
    {
      "job": 114164227750,
      "time": 158,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11663545586"
    },
    {
      "job": 114164671453,
      "time": 90,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11664525384"
    },
    {
      "job": 114164671397,
      "time": 88,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11663530805"
    },
    {
      "job": 114164671485,
      "time": 77,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11664130518"
    },
    {
      "job": 114164671512,
      "time": 73,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11663435819"
    }
  ],
  "_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"
  },
  "_distro": "resolute",
  "_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"
    },
    {
      "name": "v3.0.0",
      "date": "2026-05-21"
    }
  ],
  "_stars": 5,
  "_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",
    "followers": 464,
    "description": "We are the UK’s largest independent producer of official statistics and its recognised national statistical institute."
  },
  "_downloads": {
    "count": 316,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/cellkeyperturbation"
  },
  "_devurl": "https://github.com/onsdigital/cell-key-perturbation-r",
  "_searchresults": 6,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/cellkeyperturbation.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_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.653212513775344,
  "_indexed": true,
  "_nocasepkg": "cellkeyperturbation",
  "_universes": [
    "onsdigital"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "3.0.0",
      "date": "2026-10-10T07:45:05.000Z",
      "distro": "resolute",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "https://r2.ropensci.org/9543fd251013e8fb64a9b463f96ff4fb0e3b9ba99294c1b726b571f0efe9d294",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/38035233543"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "3.0.0",
      "date": "2026-10-10T07:44:52.000Z",
      "distro": "resolute",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "https://r2.ropensci.org/950b27db1c54ea72003e7f0eaf12479b47cc46ec667587b006ca56d61473bb39",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/38035233543"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "3.0.0",
      "date": "2026-10-10T08:02:16.000Z",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "https://r2.ropensci.org/21ac6e6250fee7b0c717a935163626e303ce925982aea050c6f4fe3671c38a28",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/38035233543"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "3.0.0",
      "date": "2026-10-10T08:00:23.000Z",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "https://r2.ropensci.org/350c1b2f8165475f4cc76d1d62c6c9df58bae094c5f74b268a6d98f8245bcdb5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/38035233543"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "3.0.0",
      "date": "2026-10-10T07:44:54.000Z",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "https://r2.ropensci.org/88541f835d22af3bc78ced96af55b17ddf2714d77a7cbffb4efd0ba17dbb8a3d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/38035233543"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "3.0.0",
      "date": "2026-10-10T07:44:37.000Z",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "https://r2.ropensci.org/d8cc3a7ea9e3e43c4d2a672794c3658bbbcea3855c34b3bc73bb35db6fc5849a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/38035233543"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "3.0.0",
      "date": "2026-10-10T07:44:25.000Z",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "https://r2.ropensci.org/97339402e3e1fe8cbb8024ebd55eea5677d599e8c55a3af0d33ee01abe9d99ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/38035233543"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "3.0.0",
      "date": "2026-10-10T07:44:21.000Z",
      "commit": "2187cf12018e2f4fcd63d3def6d87f11601ff4bf",
      "fileid": "https://r2.ropensci.org/b7113577a7b5ca1d6f76b5dbe359e88666d988d0f8fbb723b7d3517563b0fe2e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/onsdigital/actions/runs/38035233543"
    }
  ]
}