Learn R Programming

sjmisc (version 2.0.1)

write_spss: Write content of data frame to SPSS sav-file

Description

This function saves the content of a data frame to an SPSS sav-file.

Usage

write_spss(x, path, use.tagged.na = FALSE, enc.to.utf8 = FALSE)

Arguments

x
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.

See Also