Learn R Programming

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

surveydata (version 0.1-14)

Tools to manipulate 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

177

Version

0.1-14

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Andrie Vries

Last Published

October 22nd, 2013

Functions in surveydata (0.1-14)

Extract

Extract or replace subsets of surveydata, ensuring that the varlabels stay in synch.
merge

Merge surveydata objects.
merge_varlabels

Merges variable.labels attribute from two surveydata objects
fixLevels01

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

Removes pattern and variable.labels from attributes list.
questions

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

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

Tests whether an object is of class surveydata.
surveydata-package

Tools, classes and methods to manipulate survey data.
qOrder

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

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

Combines surveydata object by columns.
encToInt

Converts a character vector to an integer vector
dropout

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

Coerces surveydata object to data.frame.
pattern

Returns and updates pattern attribute.
names<-

Updates names and variable.labels attribute of surveydata.
membersurvey

Data frame with survey data of member satisfaction survey.
rm.pattern

Removes pattern from attributes list.
as.surveydata

Coercion from and to surveydata.
varlabels

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

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

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

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

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

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

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

Returns unique elements of question text.
qText

Returns question text.
which.q

Identifies the columns indices corresponding to a specific question.
splitCommonUnique

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

Converts an integer vector to a character vector.
fixCommonEncodingProblems

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

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

Returns common element of question text.
names<-

Updates names and variable.labels attribute of surveydata.