However, it can be read in SPSS. The file is available on the web, as it 
corresponds to the raw database of the Northern Ireland Life and Times Survey 
2007 (http://www.ark.ac.uk/nilt/datasets/). It is a file that SPSS recognises; 
albeit the foreign package doesn't -hence my initial query.

José

-----Original Message-----
From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] 
Sent: 18 July 2008 15:50
To: Jose Iparraguirre D'Elia
Cc: r-help@r-project.org
Subject: RE: [R] Reading SPSS .por files

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:[EMAIL PROTECTED]
> Sent: 18 July 2008 14:38
> To: Jose Iparraguirre D'Elia
> Cc: r-help@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,                  [EMAIL PROTECTED]
> 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,                  [EMAIL PROTECTED]
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

______________________________________________
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