[R] read.spss: variable.labels

soeren.vogel at eawag.ch soeren.vogel at eawag.ch
Tue Oct 7 17:11:41 CEST 2008


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



More information about the R-help mailing list