[R] SPSS long variable names
Orvalho Augusto
orvaquim at gmail.com
Tue Oct 13 17:39:33 CEST 2009
No!
That is variable labels.
Caveman
On Tue, Oct 13, 2009 at 4:52 PM, Robert Baer <rbaer at atsu.edu> wrote:
>>> 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
>
>
>
More information about the R-help
mailing list