Skip to content
Back to formatted view

Raw Message

Message-ID: <1117287352.22595.8.camel@horizons.localdomain>
Date: 2005-05-28T13:35:52Z
From: Marc Schwartz
Subject: read.spss trouble
In-Reply-To: <1117286593.18296.7.camel@localhost>

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