Re: [R] SPSS variable lables import

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Wed 07 Jun 2006 - 00:14:01 EST

On Tue, 6 Jun 2006, Frank Thomas wrote:

> Hi,
> I try to get the variable labels of a SPSS data file into R but don't
> find this mentioned in the help file for foreign. Is there another way
> to get them ?
> BTW: An SPSS variable name is like: VAR001, whereas the variable label
> might be 'Identification no.'

mydata <- read.spss("mydata.sav")
attr(mydata, "variable.labels")

         -thomas

Thomas Lumley			Assoc. Professor, Biostatistics
tlumley@u.washington.edu	University of Washington, Seattle

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 07 00:19:44 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 07 Jun 2006 - 04:10:38 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.