[R] Reading SPSS .por files

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jul 18 16:49:44 CEST 2008


On Fri, 18 Jul 2008, Jose Iparraguirre D'Elia wrote:

> Thanks Brian,
>
> The error message reads as follows:
>
> Error in read.spss("G:/Jose/Life and Times Survey/LT 2007/nilt07w1.por") :
>  error reading portable-file dictionary

So it looks like it is not a portable file, or at least one that read.spss 
knows about.

>
> José
>
> -----Original Message-----
> From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
> Sent: 18 July 2008 14:38
> To: Jose Iparraguirre D'Elia
> Cc: r-help at r-project.org
> Subject: Re: [R] Reading SPSS .por files
>
> On Fri, 18 Jul 2008, Jose Iparraguirre D'Elia wrote:
>
>> Does anyone know how to read SPSS .por (ie Portable) files? The foreign
>> package only deals with SPSS .sav files and not with those with a "por"
>> extension.
>
> Not so.  ?read.spss says
>
>      'read.spss' reads a file stored by the SPSS 'save' or 'export'
>      commands.
>
> It says nothing about extensions, but it seems .por is commonly used in
> the 'export' SPSS command, and there is an example in the test suite of
> the foreign package.
>
> Did you actually try it?  (If so, you failed to report the error message
> you got.)
>
>>
>> Thanks,
>>
>> Jos?
>>
>>
>>
>> Mr Jos? Luis Iparraguirre D'Elia
>>
>> Senior Research Economist
>>
>> Economic Research Institute of Northern Ireland
>>
>> Floral Buildings
>>
>> 2 - 14 East Bridge Street
>>
>> Belfast BT1 3NQ
>>
>> Northern Ireland
>>
>> United Kingdom
>>
>>
>>
>> Tel:  028 9072 7350
>>
>> Fax: 028 9031 9003
>>
>> www.erini.ac.uk <http://www.erini.ac.uk/>
>>
>>
>>
>>
>> 	[[alternative HTML version deleted]]
>>
>>
>
> -- 
> Brian D. Ripley,                  ripley at stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272866 (PA)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


More information about the R-help mailing list