[R] value labels from read.spss()?

Jonathan Baron baron at cattell.psych.upenn.edu
Wed Jan 9 16:28:02 CET 2002


>From owner-r-help at stat.math.ethz.ch Wed Jan  9 10:08:44 2002
>
>Does anyone know how to access/list the value labels stored in a SPSS .sav
>file?
>At the moment I can read in variables using read.spss() (foreign package),
>but have to power up SPSS to check value labels.
>
>Stuart

There may be a solution to this in R, and I would love to hear
it, but I was just faced with exactly this problem and I solved
it with the Unix "strings" command:

strings thefile.sav > thefile.txt

for example.  Jon Baron


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list