Displaying 1 result from an estimated 1 matches for "resarrvl".
2010 Dec 06
3
Please help with write.foreign(SPSS)
Dear all,
I get stuck when i try to export the data into SPSS format/file using
"write.foreign()"
Do you know how to do it exactly?
What i have done is
1) First i type the following code in R:
df<-data.frame(id,year,res1)
names(df)<-c("idcode","year","resarrvl")
write.foreign(df,"z:/daten/res.dat","z:/daten/res.sps",package="SPSS")
2) Then I run "res.sps" in SPSS
DATA LIST FILE= "k:/res.dat" free (",")
/ idcode year resarrvl .
VARIABLE LABELS
idcode "idcode"
year "year&...