set.lang | R Documentation |
Changes default label language for a dataset. Variables with generated labels (option generate.labels=TRUE) are kept unchanged.
set.lang(dat, lang = NA, generate.factors = FALSE)
dat |
data.frame. Data.frame created by |
lang |
character. Label language. Default language defined by
|
generate.factors |
logical. If |
Returns a data.frame with value labels in language "lang".
Jan Marvin Garbuszus jan.garbuszus@ruhr-uni-bochum.de
Sebastian Jeworutzki sebastian.jeworutzki@ruhr-uni-bochum.de
dat <- read.dta13(system.file("extdata/statacar.dta", package="readstata13")) get.lang(dat) varlabel(dat) # set German label datDE <- set.lang(dat, "de") get.lang(datDE) varlabel(datDE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.