createLabelList | R Documentation |
By default, read.spss
from the foreign package uses variable.labels
as attributes of the whole data.frame
, value.labels as attribute of each specific
variable in the data.frame
. convertLabel
provides variable and value
labels as variable attributes. createLabelList
creates a data.frame with
variable and value labels.
createLabelList(dfr, additionalAttributes = NULL)
dfr |
A data.frame with variable and value labels stored as attributes using the convention of |
additionalAttributes |
Optional: Vector of names of additional attributes which should be collected in the returned data frame. |
A data.frame
.
Sebastian Weirich
file <- system.file("extdata", "Klauer.sav", package = "eatAnalysis")
dat <- foreign::read.spss(file, to.data.frame=FALSE, use.value.labels = FALSE)
dat <- convertLabel(dat)
atts <- createLabelList(dat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.