synds
) object to external files of selected format.
Currently supported file formats include: SPSS, Stata, SAS, csv, tab,
rda, RData and txt. For SPSS, Stata and SAS it uses functions from
the foreign
package with some adjustments where necessary.
Information about the synthesis is written into a separate text file. NOTE: Currently numeric codes and labels can be preserved correctly only
for SPSS files imported into R using read.obs
function.
write.syn(object, filename,
filetype = c("SPSS", "Stata", "SAS", "csv", "tab", "rda", "RData", "txt"),
convert.factors = "numeric", data.labels = NULL, save.complete = TRUE,
extended.info = TRUE, ...)
synds
, which stands
for 'synthesised data set'. It is typically created by
function syn
and it includes object$m
synthesised data set(s)."numeric"
in order
to preserve the numeric codes from the original data.
See write.dta
for other possible values.synds
) object should be saved into a file
(synobject.rda
).synobject.rda
file.read.obs