[R] SPSS long variable names

John Kane jrkrideau at yahoo.ca
Tue Oct 13 15:01:10 CEST 2009


library(Hmisc) spss.get may do it but it's been some time since I used it.

--- On Sat, 10/10/09, Orvalho Augusto <orvaquim at gmail.com> wrote:

> From: Orvalho Augusto <orvaquim at gmail.com>
> Subject: [R] SPSS long variable names
> To: r-help at r-project.org
> Received: Saturday, October 10, 2009, 12:14 PM
> Hello guys I am new to this list and
> for R too.
> 
> 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.
> 
> Or if someone could help me on other way:
> I have to process everyday a lot of SPSS Syntax Files and
> Dat files
> that come from one system that can only export data on
> through that
> way.
> 
> I use PSPP to generate the spss data file (sav) that I read
> with R.
> >From R I can export to MySQL, DBF and STATA to satisfy
> the needs of
> different guys here.
> 
> The problem is the limit of 8 characters long on variable
> names.
> 
> Can someone help on that?
> 
> Caveman
> 
> ______________________________________________
> R-help at 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.
> 


      __________________________________________________________________
The new Internet Explorer® 8 - Faster, safer, easier.  Optimiz
etexplorer/




More information about the R-help mailing list