[R] SPSS long variable names

Orvalho Augusto orvaquim at gmail.com
Tue Oct 13 15:30:41 CEST 2009


Thanks for the answer.

Hmisc uses read.spss from the foreign package. And so it does not
solve my trouble.

I need to read the long names on the SPSS dataset.

Caveman


On Tue, Oct 13, 2009 at 3:01 PM, John Kane <jrkrideau at yahoo.ca> wrote:
> 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.  Optimized for Yahoo!  Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
>




More information about the R-help mailing list