----- Original Message ----- From: "Robert Baer" <rb...@atsu.edu>
To: "Orvalho Augusto" <orvaq...@gmail.com>
Sent: Tuesday, October 13, 2009 9:52 AM
Subject: Re: [R] SPSS long variable names


I am wondering if there is a patch for the SPSS reading
code on the
foreign package, in order to be able to read long variable
names.
Right now read.spss() just trunc the names to 8
characters.
This sequence seems to access the long filenames for me if I know what you are asking for:

library('foreign')
a<-read.spss('fil.sav')
lnames <- attr(a,"variable.labels",exact=FALSE)

Rob



______________________________________________
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