Package: surveydata 0.2.7

surveydata: Tools to Work with Survey Data

Data obtained from surveys contains information not only about the survey responses, but also the survey metadata, e.g. the original survey questions and the answer options. The 'surveydata' package makes it easy to keep track of this metadata, and to easily extract columns with specific questions.

Authors:Andrie de Vries [aut, cre, cph], Evan Odell [ctb]

surveydata_0.2.7.tar.gz
surveydata_0.2.7.zip(r-4.5)surveydata_0.2.7.zip(r-4.4)surveydata_0.2.7.zip(r-4.3)
surveydata_0.2.7.tgz(r-4.4-any)surveydata_0.2.7.tgz(r-4.3-any)
surveydata_0.2.7.tar.gz(r-4.5-noble)surveydata_0.2.7.tar.gz(r-4.4-noble)
surveydata_0.2.7.tgz(r-4.4-emscripten)surveydata_0.2.7.tgz(r-4.3-emscripten)
surveydata.pdf |surveydata.html
surveydata/json (API)
NEWS

# Install 'surveydata' in R:
install.packages('surveydata', repos = c('https://andrie.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/andrie/surveydata/issues

Datasets:
  • membersurvey - Data frame with survey data of member satisfaction survey.

On CRAN:

5.66 score 22 stars 42 scripts 244 downloads 48 exports 66 dependencies

Last updated 2 years agofrom:b4f783d06a. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 02 2024
R-4.5-winOKNov 02 2024
R-4.5-linuxOKNov 02 2024
R-4.4-winOKNov 02 2024
R-4.4-macOKNov 02 2024
R-4.3-winOKNov 02 2024
R-4.3-macOKNov 02 2024

Exports:as_opentext_datatableas.surveydatadropoutencToIntfilterfix_common_encoding_problemsfix_levels_01fix_levels_01_rfix_levels_01_spssfixCommonEncodingProblemsfixLevels01fixLevels01RfixLevels01SPSShas_dont_knowhasDKintToEncis.surveydatalapply_nameslapplyNamesleveltest_rleveltest_spssleveltestRleveltestSPSSpatternpattern<-print_opentextqOrderqTextqTextCommonqTextUniquequestion_orderquestion_textquestion_text_commonquestion_text_uniquequestionsremove_all_dont_knowremove_dont_knowremoveAllDKremoveDKstrCommonUniquesurvey_plot_questionsurvey_plot_satisfactionsurvey_plot_titlesurvey_plot_yes_noun_surveydatavarlabelsvarlabels<-which.q

Dependencies:assertthatbase64encbslibcachemclicolorspacecpp11crosstalkdigestdplyrDTevaluatefansifarverfastmapfontawesomefsgenericsggplot2gluegtablehighrhtmltoolshtmlwidgetshttpuvisobandjquerylibjsonliteknitrlabelinglaterlatticelazyevallifecyclemagrittrMASSMatrixmemoisemgcvmimemunsellnlmepillarpkgconfigpromisespurrrR6rappdirsRColorBrewerRcpprlangrmarkdownsassscalesstringistringrtibbletidyrtidyselecttinytexutf8vctrsviridisLitewithrxfunyaml

Introduction to the surveydata package.

Rendered fromsurveydata.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2019-01-23
Started: 2017-07-12

Readme and manuals

Help Manual

Help pageTopics
Tools, classes and methods to manipulate survey data.surveydata-package surveydata
Converts free format question text to datatable using the 'DT' package.as_opentext_datatable
Coerces surveydata object to data.frame.as.data.frame as.data.frame.surveydata
Coercion from and to surveydata.as.surveydata un_surveydata
Combines surveydata object by columns.cbind.surveydata
Calculates at which questions respondents drop out.dropout
Converts a character vector to an integer vector.encToInt
Fix common encoding problems when working with web imported data.fix_common_encoding_problems
Fix level formatting of all question with Yes/No type answers.fix_levels_01 fix_levels_01_r fix_levels_01_spss
Tests whether levels contain "Don't know".has_dont_know
Converts an integer vector to a character vector.intToEnc
Tests whether an object is of class surveydata.is.surveydata
Applies function only to named elements of a list.lapply_names
Fix level formatting of all question with Yes/No type answers.leveltest leveltest_r leveltest_spss
Data frame with survey data of member satisfaction survey.membersurvey
Merge surveydata objects.merge merge.surveydata
Print open text questions.print_opentext
Changes vector to ordered factor, adding NA levels if applicable.question_order
Returns question text.question_text
Returns common element of question text.question_text_common
Returns unique elements of question text.question_text_unique
Returns a list of all the unique questions in the surveydata object.questions
Removes "Do not know" and other similar words from factor levels in data frame.remove_all_dont_know
Removes "Don't know" from levels and replaces with NA.remove_dont_know
Removes pattern and variable.labels from attributes list.rm.attrs
Removes pattern from attributes list.rm.pattern
Get common and unique text in question based on regex pattern identification.split_common_unique
Finds the common and unique elements in a character vector.strCommonUnique
Plots single and as multi-response questions.survey_plot_question
Plot satisfaction questions.survey_plot_satisfaction
Construct plot title from the question text, wrapping at the desired width.survey_plot_title
Plot data in yes/no format.survey_plot_yes_no
Identifies the columns indices corresponding to a specific question.which.q