Learn R Programming

sjmisc (version 2.3.0)

write_spss: Write data to other statistical software packages

Description

These functions write the content of a data frame to an SPSS, SAS or Stata-file.

Usage

write_spss(x, path, use.tagged.na = FALSE, enc.to.utf8 = FALSE)
write_stata(x, path, use.tagged.na = FALSE, enc.to.utf8 = FALSE, version = 14)
write_sas(x, path, use.tagged.na = FALSE, enc.to.utf8 = FALSE)

Arguments

x
A data frame that should be saved as file.
path
File path of the output file.
use.tagged.na
Logical, if TRUE, tagged_na values are converted to their values, i.e. values of tagged NA's are converted to factor levels. If FALSE (default), tagged NA's are converted to regular NA's.
enc.to.utf8
Logical, if TRUE, character encoding of variable and value labels will be converted to UTF-8.
version
File version to use. Supports versions 8-14.

See Also