{
  "_id": "6a1f1049b401979e7341d757",
  "Package": "surveydata",
  "Version": "0.2.8",
  "License": "GPL-2|GPL-3",
  "Title": "Tools to Work with Survey Data",
  "LazyData": "true",
  "LazyLoad": "true",
  "Copyright": "Andrie de Vries",
  "Authors@R": "c(\nperson(\"Andrie\", \"de Vries\", role=c(\"aut\", \"cre\", \"cph\"),\nemail=\"apdevries@gmail.com\"),\nperson(\"Evan\", \"Odell\", role=c(\"ctb\"))\n)",
  "Description": "Data obtained from surveys contains information not only\nabout the survey responses, but also the survey metadata, e.g.\nthe original survey questions and the answer options. The\n'surveydata' package makes it easy to keep track of this\nmetadata, and to easily extract columns with specific\nquestions.",
  "URL": "https://github.com/andrie/surveydata,\nhttps://andrie.github.io/surveydata/",
  "BugReports": "https://github.com/andrie/surveydata/issues",
  "ByteCompile": "yes",
  "RoxygenNote": "7.3.3",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "cmake make libicu-dev libuv1-dev",
  "Repository": "https://andrie.r-universe.dev",
  "Date/Publication": "2026-01-17 13:38:02 UTC",
  "RemoteUrl": "https://github.com/andrie/surveydata",
  "RemoteRef": "HEAD",
  "RemoteSha": "1b6ad976302d4ff35ae754b464a2453412e79aac",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-17 08:20:38 UTC",
    "User": "root"
  },
  "Author": "Andrie de Vries [aut, cre, cph],\nEvan Odell [ctb]",
  "Maintainer": "Andrie de Vries <apdevries@gmail.com>",
  "MD5sum": "28986235b547177a1a3a0d4ece32fb07",
  "_user": "andrie",
  "_type": "src",
  "_file": "surveydata_0.2.8.tar.gz",
  "_fileid": "c5763ef5504e16a24d165a6d4380ebe057de10ca3d8a1441fac44f359afe70fb",
  "_filesize": 1976584,
  "_sha256": "c5763ef5504e16a24d165a6d4380ebe057de10ca3d8a1441fac44f359afe70fb",
  "_created": "2026-05-17T08:20:38.000Z",
  "_published": "2026-06-02T17:18:01.434Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79129954709,
      "time": 177,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7040784012"
    },
    {
      "job": 79129954954,
      "time": 146,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040780769"
    },
    {
      "job": 79129955104,
      "time": 78,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7040773194"
    },
    {
      "job": 79129955329,
      "time": 85,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040773871"
    },
    {
      "job": 79129953825,
      "time": 206,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040763799"
    },
    {
      "job": 79129953884,
      "time": 129,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7364871584"
    },
    {
      "job": 79129954490,
      "time": 98,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7040775265"
    },
    {
      "job": 79129955456,
      "time": 96,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7040775038"
    },
    {
      "job": 79129955105,
      "time": 94,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040774939"
    }
  ],
  "_buildurl": "https://github.com/r-universe/andrie/actions/runs/25985643429",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/andrie/surveydata",
  "_commit": {
    "id": "1b6ad976302d4ff35ae754b464a2453412e79aac",
    "author": "andrie <apdevries@gmail.com>",
    "committer": "andrie <apdevries@gmail.com>",
    "message": "Submitted to CRAN\n",
    "time": 1768657082
  },
  "_maintainer": {
    "name": "Andrie de Vries",
    "email": "apdevries@gmail.com",
    "login": "andrie",
    "mastodon": "@andrie@fosstodon.org",
    "description": "Director of product strategy at @Posit, helping to make R and Python first class citizens for data science and enterprise deployment. ",
    "uuid": 479998
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "role": "Imports"
    },
    {
      "package": "DT",
      "role": "Imports"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "rprojroot",
      "role": "Suggests"
    },
    {
      "package": "spelling",
      "role": "Suggests"
    }
  ],
  "_owner": "andrie",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-03",
      "n": 7
    }
  ],
  "_tags": [],
  "_stars": 23,
  "_contributors": [
    {
      "user": "andrie",
      "count": 143,
      "uuid": 479998
    },
    {
      "user": "davisvaughan",
      "count": 1,
      "uuid": 19150088
    },
    {
      "user": "evanodell",
      "count": 1,
      "uuid": 16305479
    }
  ],
  "_userbio": {
    "uuid": 479998,
    "type": "user",
    "name": "Andrie de Vries",
    "description": "Director of product strategy at @Posit, helping to make R and Python first class citizens for data science and enterprise deployment. "
  },
  "_downloads": {
    "count": 243,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/surveydata"
  },
  "_devurl": "https://github.com/andrie/surveydata",
  "_pkgdown": "https://andrie.github.io/surveydata/",
  "_searchresults": 45,
  "_rbuild": "4.6.0",
  "_assets": [
    "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",
    "extra/surveydata.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/andrie/surveydata",
  "_realowner": "andrie",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1-11",
      "date": "2012-12-31"
    },
    {
      "version": "0.1-14",
      "date": "2013-10-22"
    },
    {
      "version": "0.2.0",
      "date": "2017-07-19"
    },
    {
      "version": "0.2.2",
      "date": "2018-12-06"
    },
    {
      "version": "0.2.3",
      "date": "2019-01-23"
    },
    {
      "version": "0.2.4",
      "date": "2020-02-04"
    },
    {
      "version": "0.2.5",
      "date": "2020-04-21"
    },
    {
      "version": "0.2.6",
      "date": "2020-09-16"
    },
    {
      "version": "0.2.7",
      "date": "2023-03-12"
    },
    {
      "version": "0.2.8",
      "date": "2026-01-17"
    }
  ],
  "_exports": [
    "as_opentext_datatable",
    "as.surveydata",
    "dropout",
    "encToInt",
    "filter",
    "fix_common_encoding_problems",
    "fix_levels_01",
    "fix_levels_01_r",
    "fix_levels_01_spss",
    "fixCommonEncodingProblems",
    "fixLevels01",
    "fixLevels01R",
    "fixLevels01SPSS",
    "has_dont_know",
    "hasDK",
    "intToEnc",
    "is.surveydata",
    "lapply_names",
    "lapplyNames",
    "leveltest_r",
    "leveltest_spss",
    "leveltestR",
    "leveltestSPSS",
    "pattern",
    "pattern<-",
    "print_opentext",
    "qOrder",
    "qText",
    "qTextCommon",
    "qTextUnique",
    "question_order",
    "question_text",
    "question_text_common",
    "question_text_unique",
    "questions",
    "remove_all_dont_know",
    "remove_dont_know",
    "removeAllDK",
    "removeDK",
    "strCommonUnique",
    "survey_plot_question",
    "survey_plot_satisfaction",
    "survey_plot_title",
    "survey_plot_yes_no",
    "un_surveydata",
    "varlabels",
    "varlabels<-",
    "which.q"
  ],
  "_datasets": [
    {
      "name": "membersurvey",
      "title": "Data frame with survey data of member satisfaction survey.",
      "object": "membersurvey",
      "class": [
        "surveydata",
        "data.frame"
      ],
      "fields": [
        "id",
        "Q1_1",
        "Q1_2",
        "Q2",
        "Q3_1",
        "Q3_2",
        "Q3_3",
        "Q3_4",
        "Q3_5",
        "Q3_6",
        "Q3_7",
        "Q3_8",
        "Q3_9",
        "Q3_10",
        "Q3_11",
        "Q3_12",
        "Q3_13",
        "Q3_14",
        "Q3_15",
        "Q4",
        "Q5",
        "Q6_1",
        "Q6_2",
        "Q6_3",
        "Q6_4",
        "Q6_5",
        "Q6_6",
        "Q6_7",
        "Q6_8",
        "Q6_9",
        "Q6_10",
        "Q7",
        "Q8",
        "Q9_1",
        "Q9_2",
        "Q9_3",
        "Q9_4",
        "Q9_5",
        "Q10",
        "Q11_1",
        "Q11_2",
        "Q11_3",
        "Q11_4",
        "Q11_5",
        "Q11_other",
        "Q12_1",
        "Q13_1",
        "Q13_2",
        "Q13_3",
        "Q13_4",
        "Q14_1",
        "Q14_2",
        "Q14_3",
        "Q14_4",
        "Q14_5",
        "Q14_6",
        "Q14_7",
        "Q14_8",
        "Q14_9",
        "Q14_10",
        "Q15_1",
        "Q15_2",
        "Q15_3",
        "Q15_4",
        "Q15_5",
        "Q15_6",
        "Q19_1",
        "Q19_2",
        "Q19_3",
        "Q19_4",
        "Q19_5",
        "Q19_6",
        "Q20_1",
        "Q20_2",
        "Q20_3",
        "Q20_4",
        "Q20_5",
        "Q20_6",
        "Q20_7",
        "Q20_8",
        "Q20_9",
        "Q20_10",
        "Q20_other",
        "Q21_1",
        "Q21_2",
        "Q21_3",
        "Q21_4",
        "Q21_5",
        "Q21_6",
        "Q23_1",
        "Q23_2",
        "Q23_3",
        "Q23_4",
        "Q23_5",
        "Q23_other",
        "Q24",
        "Q25",
        "Q26_1",
        "Q27_1",
        "Q27_2",
        "Q30",
        "Q30_other",
        "Q31",
        "Q31_other",
        "Q32",
        "Q33",
        "Q35",
        "weight",
        "size"
      ],
      "rows": 215,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "surveydata-package",
      "title": "Tools, classes and methods to manipulate survey data.",
      "topics": [
        "surveydata-package",
        "surveydata"
      ]
    },
    {
      "page": "as_opentext_datatable",
      "title": "Converts free format question text to datatable using the 'DT' package.",
      "concept": [
        "open text functions"
      ],
      "topics": [
        "as_opentext_datatable"
      ]
    },
    {
      "page": "as.data.frame.surveydata",
      "title": "Coerces surveydata object to data.frame.",
      "topics": [
        "as.data.frame",
        "as.data.frame.surveydata"
      ]
    },
    {
      "page": "as.surveydata",
      "title": "Coercion from and to surveydata.",
      "topics": [
        "as.surveydata",
        "un_surveydata"
      ]
    },
    {
      "page": "cbind.surveydata",
      "title": "Combines surveydata object by columns.",
      "topics": [
        "cbind.surveydata"
      ]
    },
    {
      "page": "dropout",
      "title": "Calculates at which questions respondents drop out.",
      "topics": [
        "dropout"
      ]
    },
    {
      "page": "encToInt",
      "title": "Converts a character vector to an integer vector.",
      "concept": [
        "Functions to clean data"
      ],
      "topics": [
        "encToInt"
      ]
    },
    {
      "page": "fix_common_encoding_problems",
      "title": "Fix common encoding problems when working with web imported data.",
      "concept": [
        "Functions to clean data"
      ],
      "topics": [
        "fix_common_encoding_problems"
      ]
    },
    {
      "page": "fix_levels_01",
      "title": "Fix level formatting of all question with Yes/No type answers.",
      "concept": [
        "Functions to clean data"
      ],
      "topics": [
        "fix_levels_01",
        "fix_levels_01_r",
        "fix_levels_01_spss"
      ]
    },
    {
      "page": "has_dont_know",
      "title": "Tests whether levels contain \"Don't know\".",
      "concept": [
        "Functions to clean data"
      ],
      "topics": [
        "has_dont_know"
      ]
    },
    {
      "page": "intToEnc",
      "title": "Converts an integer vector to a character vector.",
      "concept": [
        "Functions to clean data"
      ],
      "topics": [
        "intToEnc"
      ]
    },
    {
      "page": "is.surveydata",
      "title": "Tests whether an object is of class surveydata.",
      "topics": [
        "is.surveydata"
      ]
    },
    {
      "page": "lapply_names",
      "title": "Applies function only to named elements of a list.",
      "concept": [
        "Tools"
      ],
      "topics": [
        "lapply_names"
      ]
    },
    {
      "page": "leveltest",
      "title": "Fix level formatting of all question with Yes/No type answers.",
      "concept": [
        "Functions to clean data"
      ],
      "topics": [
        "leveltest",
        "leveltest_r",
        "leveltest_spss"
      ]
    },
    {
      "page": "membersurvey",
      "title": "Data frame with survey data of member satisfaction survey.",
      "topics": [
        "membersurvey"
      ]
    },
    {
      "page": "merge",
      "title": "Merge surveydata objects.",
      "topics": [
        "merge",
        "merge.surveydata"
      ]
    },
    {
      "page": "print_opentext",
      "title": "Print open text questions.",
      "concept": [
        "open text functions"
      ],
      "topics": [
        "print_opentext"
      ]
    },
    {
      "page": "question_order",
      "title": "Changes vector to ordered factor, adding NA levels if applicable.",
      "concept": [
        "Tools"
      ],
      "topics": [
        "question_order"
      ]
    },
    {
      "page": "question_text",
      "title": "Returns question text.",
      "concept": [
        "Question functions"
      ],
      "topics": [
        "question_text"
      ]
    },
    {
      "page": "question_text_common",
      "title": "Returns common element of question text.",
      "concept": [
        "Question functions"
      ],
      "topics": [
        "question_text_common"
      ]
    },
    {
      "page": "question_text_unique",
      "title": "Returns unique elements of question text.",
      "concept": [
        "Question functions"
      ],
      "topics": [
        "question_text_unique"
      ]
    },
    {
      "page": "questions",
      "title": "Returns a list of all the unique questions in the surveydata object.",
      "concept": [
        "Question functions"
      ],
      "topics": [
        "questions"
      ]
    },
    {
      "page": "remove_all_dont_know",
      "title": "Removes \"Do not know\" and other similar words from factor levels in data frame.",
      "concept": [
        "Functions to clean data"
      ],
      "topics": [
        "remove_all_dont_know"
      ]
    },
    {
      "page": "remove_dont_know",
      "title": "Removes \"Don't know\" from levels and replaces with NA.",
      "concept": [
        "Functions to clean data"
      ],
      "topics": [
        "remove_dont_know"
      ]
    },
    {
      "page": "rm.attrs",
      "title": "Removes pattern and variable.labels from attributes list.",
      "topics": [
        "rm.attrs"
      ]
    },
    {
      "page": "rm.pattern",
      "title": "Removes pattern from attributes list.",
      "topics": [
        "rm.pattern"
      ]
    },
    {
      "page": "split_common_unique",
      "title": "Get common and unique text in question based on regex pattern identification.",
      "concept": [
        "Question functions"
      ],
      "topics": [
        "split_common_unique"
      ]
    },
    {
      "page": "strCommonUnique",
      "title": "Finds the common and unique elements in a character vector.",
      "concept": [
        "Strings"
      ],
      "topics": [
        "strCommonUnique"
      ]
    },
    {
      "page": "survey_plot_question",
      "title": "Plots single and as multi-response questions.",
      "concept": [
        "survey plotting functions"
      ],
      "topics": [
        "survey_plot_question"
      ]
    },
    {
      "page": "survey_plot_satisfaction",
      "title": "Plot satisfaction questions.",
      "concept": [
        "survey plotting functions"
      ],
      "topics": [
        "survey_plot_satisfaction"
      ]
    },
    {
      "page": "survey_plot_title",
      "title": "Construct plot title from the question text, wrapping at the desired width.",
      "topics": [
        "survey_plot_title"
      ]
    },
    {
      "page": "survey_plot_yes_no",
      "title": "Plot data in yes/no format.",
      "concept": [
        "survey plotting functions"
      ],
      "topics": [
        "survey_plot_yes_no"
      ]
    },
    {
      "page": "which.q",
      "title": "Identifies the columns indices corresponding to a specific question.",
      "concept": [
        "Question functions"
      ],
      "topics": [
        "which.q"
      ]
    }
  ],
  "_readme": "https://github.com/andrie/surveydata/raw/HEAD/README.md",
  "_rundeps": [
    "assertthat",
    "base64enc",
    "bslib",
    "cachem",
    "cli",
    "cpp11",
    "crosstalk",
    "digest",
    "dplyr",
    "DT",
    "evaluate",
    "farver",
    "fastmap",
    "fontawesome",
    "fs",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "highr",
    "htmltools",
    "htmlwidgets",
    "isoband",
    "jquerylib",
    "jsonlite",
    "knitr",
    "labeling",
    "later",
    "lazyeval",
    "lifecycle",
    "magrittr",
    "memoise",
    "mime",
    "otel",
    "pillar",
    "pkgconfig",
    "promises",
    "purrr",
    "R6",
    "rappdirs",
    "RColorBrewer",
    "Rcpp",
    "rlang",
    "rmarkdown",
    "S7",
    "sass",
    "scales",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "tinytex",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr",
    "xfun",
    "yaml"
  ],
  "_vignettes": [
    {
      "source": "surveydata.Rmd",
      "filename": "surveydata.html",
      "title": "Introduction to the surveydata package.",
      "author": "Andrie de Vries",
      "engine": "knitr::rmarkdown",
      "headings": [],
      "created": "2017-07-12 07:37:40",
      "modified": "2019-01-23 12:30:48",
      "commits": 5
    }
  ],
  "_score": 6.014940349792937,
  "_indexed": true,
  "_nocasepkg": "surveydata",
  "_universes": [
    "andrie"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.8",
      "date": "2026-05-17T08:23:31.000Z",
      "distro": "noble",
      "commit": "1b6ad976302d4ff35ae754b464a2453412e79aac",
      "fileid": "e60cbb82e83d84295aca6a6cae65e2e728c24f8d6d12d5bfd232dac9800dddf2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrie/actions/runs/25985643429"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.8",
      "date": "2026-05-17T08:22:58.000Z",
      "distro": "noble",
      "commit": "1b6ad976302d4ff35ae754b464a2453412e79aac",
      "fileid": "049e6ea0b1e68bf11467bdd2f8f58506f6e3f1fc673cdca5504a25c1e0f8c564",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrie/actions/runs/25985643429"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.8",
      "date": "2026-05-17T08:22:02.000Z",
      "commit": "1b6ad976302d4ff35ae754b464a2453412e79aac",
      "fileid": "4d2e37f28a405f4728b7fa7d986d5ee8a0b5674f7b84b95bc40f0e31a9b4d40e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrie/actions/runs/25985643429"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.8",
      "date": "2026-05-17T08:22:04.000Z",
      "commit": "1b6ad976302d4ff35ae754b464a2453412e79aac",
      "fileid": "1a62ea026aa9e323d420e9f5506165460294c91911b1cb1693a8c4631fc93b0c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrie/actions/runs/25985643429"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-05-17T08:21:51.000Z",
      "commit": "1b6ad976302d4ff35ae754b464a2453412e79aac",
      "fileid": "11827fc52e9ad1772a2ee0645f1876a96718c773b86d90b4f9775f72e4a10a07",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrie/actions/runs/25985643429"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-05-17T08:21:56.000Z",
      "commit": "1b6ad976302d4ff35ae754b464a2453412e79aac",
      "fileid": "8f2d7ed2d0c87d9973e83f4cce0bae9b6d5582a66225abf21b7a0b4e7cca82bd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrie/actions/runs/25985643429"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.8",
      "date": "2026-05-17T08:21:56.000Z",
      "commit": "1b6ad976302d4ff35ae754b464a2453412e79aac",
      "fileid": "04dd23375bd4d2251a8eca14eef74e5367f6a7cab8a2a2528e751fff61cea222",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/andrie/actions/runs/25985643429"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.8",
      "date": "2026-06-02T17:17:40.000Z",
      "commit": "1b6ad976302d4ff35ae754b464a2453412e79aac",
      "fileid": "594b6f76cf55baffd283d86381494c00a524c4049592b0c05ff04fd5e7115fbc",
      "status": "success",
      "buildurl": "https://github.com/r-universe/andrie/actions/runs/25985643429"
    }
  ]
}