Re: [R] Read SPSS data (*.sav) in R 1.8.0 (ok) and R1.9.1(error)

From: Jonathan Baron <baron_at_psych.upenn.edu>
Date: Mon 26 Jul 2004 - 20:31:06 EST

On 07/26/04 10:36, Karl Knoblick wrote:
>Hallo!
>
>I read SPSS data in the following way:
>
>library(Hmisc)
>library(foreign)
>dat<-spss.get("surv_abb.sav")
>
>In R1.9.1 I got the message:
>"Error in all(arg == choices) : Object "typeDate" not
>found"
>
>In R1.8.0 the same script works fine.
>
>Does anybody know a possibilty to read a SPSS file
>under R1.9.1?

I cannot find spss.get in the man pages for the current version of foreign. It works for me with read.spss.

But I'm surprised it ever worked. So, possibly, there is something wrong with the spss file you are trying to import.

Jon

-- 
Jonathan Baron, Professor of Psychology, University of Pennsylvania
Home page: http://www.sas.upenn.edu/~baron
R search page: http://finzi.psych.upenn.edu/

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Mon Jul 26 20:37:57 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:55:13 EST