[R] read.spss

MMarques Power mmarques at inescporto.pt
Fri Mar 12 11:58:59 CET 2004


Hello Margarida,

Tuesday, March 4, 1997, 2:21:00 AM, you wrote:

> Hi,
> I would like to read a spss file in R.
> When i type read.spss("...")
> Comes the error: couldn't find function "read.spss"
> What shall i do?
> Margarida


"read.spss()" does not exists in the plain R,
it requires the correct package "foreign package" ...

A simple solution would be to export the data from Spss
to CSV format and then read something with

scan() or read.table()  functions

But if not possible to export the foreign package is the right way to
go.

try ?scan or ?read.table parameters .




Marco Marques
INESC Porto




More information about the R-help mailing list