Learn R Programming

⚠️There's a newer version (0.2.8) of this package.Take me there.

surveydata (version 0.2.5)

Tools to Work with Survey Data

Description

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.

Copy Link

Version

Install

install.packages('surveydata')

Monthly Downloads

297

Version

0.2.5

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Andrie Vries

Last Published

April 21st, 2020

Functions in surveydata (0.2.5)

names<-.surveydata

Updates names and variable.labels attribute of surveydata.
membersurvey

Data frame with survey data of member satisfaction survey.
lapply_names

Applies function only to named elements of a list.
is.surveydata

Tests whether an object is of class surveydata.
questions

Returns a list of all the unique questions in the surveydata object.
merge

Merge surveydata objects.
merge_varlabels

Merges variable.labels attribute from two surveydata objects
strCommonUnique

Finds the common and unique elements in a character vector.
leveltest

Fix level formatting of all question with Yes/No type answers.
question_text

Returns question text.
encToInt

Converts a character vector to an integer vector.
question_text_unique

Returns unique elements of question text.
split_common_unique

Get common and unique text in question based on regex pattern identification.
remove_dont_know

Removes "Don't know" from levels and replaces with NA.
which.q

Identifies the columns indices corresponding to a specific question.
remove_all_dont_know

Removes "Do not know" and other similar words from factor levels in data frame.
survey_plot_yes_no

Plot data in yes/no format.
has_dont_know

Tests whether levels contain "Don't know".
question_text_common

Returns common element of question text.
pattern

Returns and updates pattern attribute.
varlabels

Returns and updates variable.labels attribute of surveydata object.
intToEnc

Converts an integer vector to a character vector.
survey_plot_title

Construct plot title from the question text, wrapping at the desired width.
survey_plot_satisfaction

Plot satisfaction questions.
hasDK

Deprecated functions.
print_opentext

Print open text questions.
rm.pattern

Removes pattern from attributes list.
question_order

Changes vector to ordered factor, adding NA levels if applicable.
survey_plot_question

Plots single and as multi-response questions.
surveydata-package

Tools, classes and methods to manipulate survey data.
rm.attrs

Removes pattern and variable.labels from attributes list.
as_opentext_datatable

Converts free format question text to datatable using the DT package.
Extract

Extract or replace subsets of surveydata, ensuring that the varlabels stay synchronized.
as.surveydata

Coercion from and to surveydata.
dropout

Calculates at which questions respondents drop out.
as.data.frame.surveydata

Coerces surveydata object to data.frame.
cbind.surveydata

Combines surveydata object by columns.
dplyr-surveydata

Methods to support dplyr verbs.
fix_levels_01_spss

Fix level formatting of all question with Yes/No type answers.
fix_common_encoding_problems

Fix common encoding problems when working with web imported data.