surveydata: Tools to manipulate 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.

AuthorAndrie de Vries [aut, cre]
Date of publication2013-10-22 16:50:43
MaintainerAndrie de Vries <apdevries@gmail.com>
LicenseGPL-2 | GPL-3
Version0.1-14
https://github.com/andrie/surveydata

View on CRAN

Man pages

as.data.frame.surveydata: Coerces surveydata object to data.frame.

as.surveydata: Coercion from and to surveydata.

cbind.surveydata: Combines surveydata object by columns.

dropout: Calculates at which questions repondents drop out.

encToInt: Converts a character vector to an integer vector

Extract: Extract or replace subsets of surveydata, ensuring that the...

fixCommonEncodingProblems: Fix common encoding problems when working with web imported...

fixLevels01: Fix level formatting of all question with Yes/No type...

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

fixLevels01SPSS: Fix level formatting of all question with Yes/No type...

hasDK: Tests whether levels contain "Don't know".

intToEnc: Converts an integer vector to a character vector.

is.surveydata: Tests whether an object is of class surveydata.

lapplyNames: Applies function only to named elements of a list.

leveltestR: Fix level formatting of all question with Yes/No type...

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

membersurvey: Data frame with survey data of member satisfaction survey.

merge: Merge surveydata objects.

merge_varlabels: Merges variable.labels attribute from two surveydata objects

names: Updates names and variable.labels attribute of surveydata.

pattern: Returns and updates pattern attribute.

qOrder: Changes vector to ordered factor, adding NA levels if...

qText: Returns question text.

qTextCommon: Returns common element of question text.

qTextUnique: Returns unique elements of question text.

questions: Returns a list of all the unique questions in the surveydata...

removeAllDK: Removes "Do not know" and other similar words from factor...

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

rm.attrs: Removes pattern and variable.labels from attributes list.

rm.pattern: Removes pattern from attributes list.

splitCommonUnique: Get common and unique text in question based on regex pattern...

strCommonUnique: Finds the common and unique elements in a character vector.

surveydata-package: Tools, classes and methods to manipulate survey data.

varlabels: Returns and updates variable.labels attribute of surveydata...

which.q: Identifies the columns indices corresponding to a specific...

Functions

[ Man page
$<- Man page
as.data.frame Man page
as.data.frame.surveydata Man page
as.surveydata Man page
cbind.surveydata Man page
dropout Man page
encToInt Man page
Extract Man page
fixCommonEncodingProblems Man page
fixLevels01 Man page
fixLevels01R Man page
fixLevels01SPSS Man page
hasDK Man page
intToEnc Man page
is.surveydata Man page
lapplyNames Man page
leveltestR Man page
leveltestSPSS Man page
membersurvey Man page
merge Man page
merge.surveydata Man page
merge_varlabels Man page
names<- Man page
names<-.surveydata Man page
pattern Man page
pattern<- Man page
qOrder Man page
qText Man page
qTextCommon Man page
qTextUnique Man page
questions Man page
removeAllDK Man page
removeDK Man page
rm.attrs Man page
rm.pattern Man page
splitCommonUnique Man page
strCommonUnique Man page
surveydata Man page
[<-.surveydata Man page
[.surveydata Man page
$<-.surveydata Man page
surveydata-package Man page
varlabels Man page
varlabels<- Man page
which.q Man page

Files

surveydata
surveydata/inst
surveydata/inst/examples
surveydata/inst/examples/example-extract.R
surveydata/inst/examples/example-pattern.R
surveydata/inst/examples/example-asSurveydata.R
surveydata/inst/examples/example-questions.R
surveydata/inst/examples/example-varlabels.R
surveydata/inst/tests
surveydata/inst/tests/2010.sav
surveydata/inst/tests/gss.rda
surveydata/inst/tests/test-5-questions.R
surveydata/inst/tests/test-3-extract.R
surveydata/inst/tests/test-2-whichq.R
surveydata/inst/tests/notest-9-gss.R
surveydata/inst/tests/test-6-encoding.R
surveydata/inst/tests/test-8-tools.R
surveydata/inst/tests/test-4-merge.R
surveydata/inst/tests/test-3-replace.R
surveydata/inst/tests/test-1-surveydata.R
surveydata/inst/tests/test-3-strings.R
surveydata/inst/doc
surveydata/inst/doc/surveydata.Rnw
surveydata/inst/doc/surveydata.pdf
surveydata/inst/doc/surveydata.R
surveydata/NAMESPACE
surveydata/NEWS
surveydata/data
surveydata/data/membersurvey.rda
surveydata/R
surveydata/R/cleandata.R surveydata/R/strings.R surveydata/R/encoding.R surveydata/R/surveydata.R surveydata/R/surveydata-package.R surveydata/R/varlabels.R surveydata/R/tools.R surveydata/R/pattern.R surveydata/R/extract.R surveydata/R/merge.R surveydata/R/questions.R
surveydata/vignettes
surveydata/vignettes/surveydata.Rnw
surveydata/MD5
surveydata/build
surveydata/build/vignette.rds
surveydata/DESCRIPTION
surveydata/man
surveydata/man/pattern.Rd surveydata/man/splitCommonUnique.Rd surveydata/man/varlabels.Rd surveydata/man/merge_varlabels.Rd surveydata/man/removeAllDK.Rd surveydata/man/names.Rd surveydata/man/hasDK.Rd surveydata/man/encToInt.Rd surveydata/man/fixLevels01.Rd surveydata/man/fixLevels01R.Rd surveydata/man/intToEnc.Rd surveydata/man/as.data.frame.surveydata.Rd surveydata/man/qTextUnique.Rd surveydata/man/merge.Rd surveydata/man/strCommonUnique.Rd surveydata/man/removeDK.Rd surveydata/man/qText.Rd surveydata/man/membersurvey.Rd surveydata/man/as.surveydata.Rd surveydata/man/rm.attrs.Rd surveydata/man/rm.pattern.Rd surveydata/man/cbind.surveydata.Rd surveydata/man/Extract.Rd surveydata/man/leveltestR.Rd surveydata/man/qOrder.Rd surveydata/man/is.surveydata.Rd surveydata/man/surveydata-package.Rd surveydata/man/leveltestSPSS.Rd surveydata/man/which.q.Rd surveydata/man/fixCommonEncodingProblems.Rd surveydata/man/qTextCommon.Rd surveydata/man/dropout.Rd surveydata/man/fixLevels01SPSS.Rd surveydata/man/lapplyNames.Rd surveydata/man/questions.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.