Learn R Programming

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

surveydata (version 0.2.0)

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

217

Version

0.2.0

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Andrie Vries

Last Published

July 19th, 2017

Functions in surveydata (0.2.0)

as.surveydata

Coercion from and to surveydata.
cbind.surveydata

Combines surveydata object by columns.
lapplyNames

Applies function only to named elements of a list.
leveltestR

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

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

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

Methods to support dplyr verbs.
dropout

Calculates at which questions repondents drop out.
merge

Merge surveydata objects.
merge_varlabels

Merges variable.labels attribute from two surveydata objects
qOrder

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

Returns question text.
strCommonUnique

Finds the common and unique elements in a character vector.
surveydata-package

Tools, classes and methods to manipulate survey data.
encToInt

Converts a character vector to an integer vector
fixCommonEncodingProblems

Fix common encoding problems when working with web imported data.
intToEnc

Converts an integer vector to a character vector.
is.surveydata

Tests whether an object is of class surveydata.
names<-

Updates names and variable.labels attribute of surveydata.
pattern

Returns and updates pattern attribute.
rm.pattern

Removes pattern from attributes list.
splitCommonUnique

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

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

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

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

Data frame with survey data of member satisfaction survey.
removeDK

Removes "Don't know" from levels and replaces with NA.
rm.attrs

Removes pattern and variable.labels from attributes list.
varlabels

Returns and updates variable.labels attribute of surveydata object.
which.q

Identifies the columns indices corresponding to a specific question.
Extract

Extract or replace subsets of surveydata, ensuring that the varlabels stay in synch.
as.data.frame.surveydata

Coerces surveydata object to data.frame.
fixLevels01SPSS

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

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

Returns common element of question text.
qTextUnique

Returns unique elements of question text.