Save in R

From InterSciWiki
Jump to: navigation, search


save(sccs,file="temp/sccs.RData")

Save from Rdata to Stata.dta format readable by Spss

library(foreign)
write.dta(sccs,file="sccs.dta", convert.factors = c("labels", "string", "numeric", "codes"))


Function write.foreign in package foreign uses write.table to produce a text file and also writes a code file that will read this text file into another statistical package. There is currently support for export to SPSS and Stata.


Function read.spss can read files created by the ‘save’ and ‘export’ commands in SPSS. It returns a list with one component for each variable in the saved data set. SPSS variables with value labels are optionally converted to R factors.

Other

RODBC Relational Data Base conversion 2010

R graphics manual

Personal tools