Learn R Programming

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

surveydata (version 0.1-11)

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

297

Version

0.1-11

License

GPL-2 | GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Andrie Vries

Last Published

December 31st, 2012

Functions in surveydata (0.1-11)

as.surveydata

Coercion from and to surveydata.
encToInt

Converts a character vector to an integer vector
names<-

Updates names and variable.labels attribute of surveydata.
fixCommonEncodingProblems

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

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

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

Data frame with survey data of member satisfaction survey.
as.data.frame.surveydata

Coerces surveydata object to data.frame.
varlabels

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

Returns and updates pattern attribute.
removeAllDK

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

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

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

Converts an integer vector to a character vector.
fixLevels01

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

Returns unique elements of question text.
merge

Merge surveydata objects.
surveydata-package

Tools, classes and methods to manipulate survey data.
qText

Returns question text.
splitCommonUnique

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

Tests whether an object is of class surveydata.
lapplyNames

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

Combines surveydata object by columns.
which.q

Identifies the columns indices corresponding to a specific question.
rm.pattern

Removes pattern from attributes list.
questions

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

Removes pattern and variable.labels from attributes list.
qTextCommon

Returns common element of question text.
qOrder

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

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

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

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

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

Merges variable.labels attribute from two surveydata objects
dropout

Calculates at which questions repondents drop out.