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.' Thanks in advance, F. Thomas -- .......................................... Dr. Frank Thomas FTR Internet Research 93110 Rosny-sous-Bois France --
data1 <- read.spss("file1.sav", F, T) # works ! ------------------------------------------------------------------- Jacques VESLOT CNRS UMR 8090 I.B.L (2?me ?tage) 1 rue du Professeur Calmette B.P. 245 59019 Lille Cedex Tel : 33 (0)3.20.87.10.44 Fax : 33 (0)3.20.87.10.31 http://www-good.ibl.fr ------------------------------------------------------------------- Frank Thomas a ?crit :> 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.' > > Thanks in advance, > F. Thomas >
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 at u.washington.edu University of Washington, Seattle