[EMAIL PROTECTED] wrote:
Hi,

how can I attach variable labels originally read by read.spss() to the resulting variables?

<pre>
X <- read.spss('data.sav', use.value.labels = TRUE, to.data.frame = TRUE, trim.factor.names = TRUE, trim_values = TRUE, reencode = "UTF-8")
names(X) <- tolower(names(X))
attach(X)
</pre>

Thank you

Sören

library(Hmisc)
?spss.get


--
Frank E Harrell Jr   Professor and Chair           School of Medicine
                     Department of Biostatistics   Vanderbilt University

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to