Re: [R] read.spss trouble

From: Marc Schwartz <MSchwartz_at_mn.rr.com>
Date: Sat 28 May 2005 - 23:35:52 EST

On Sat, 2005-05-28 at 13:23 +0000, Martin Klaffenboeck wrote:
> Hello!
>
> I'm not sure if this is an german list, so I will post in english.

The official language is English.

> I'm using R on my gentoo linux and now I got an spss .sav file. I found
> that r has a function like read.spss("file.sav") but when I try this I
> get the Error: couldn't find function "read.spss". Can anyone tell me
> what's going wrong?

read.spss() is part of the "foreign" package, which is installed as part of the base R installation, but it is not loaded by default.

Thus, you need to use:

 library(foreign)
 read.spss(...)

See ?library and page 74 in "An Introduction to R".

HTH, Marc Schwartz



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat May 28 23:49:45 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:13 EST