Hi,

 

I used the method read.spss() in library(foreign) to read a .sav file using
commands.

 

>library(foreign)

>data.sav <- read.spss('masterfile.sav')

>mydat <- as.data.frame(data.sav)

 

It's throwing some warnings..

 

----------------------------------------------------------------------------
--------------------------------------------

 

Warning messages:

1: In read.spss("masterfile.sav") :

  masterfile.sav: File-indicated character representation code (1252) looks
like a Windows codepage

2: In read.spss("masterfile.sav") :

  masterfile.sav: Unrecognized record type 7, subtype 20 encountered in
system file

 

----------------------------------------------------------------------------
--------------------------------------------

 

In the resulting data.frame-'mydat' all date variables are represented by
integers.

 

Q. Are there any other options which can be used with the method read.spss()
to get date variables in the right format?

 

Thanks in advance.

 

Kind Regards,

 

Praveen Surendran

2G, Complex and Adaptive Systems Laboratory (UCD CASL)

School of Medicine and Medical Sciences

University College Dublin

Belfield, Dublin 4

Ireland.

 


	[[alternative HTML version deleted]]


