These functions write the content of a data frame to an SPSS, SAS or Stata-file.
Usage
write_spss(x, path, drop.na = FALSE, compress = FALSE)
write_stata(x, path, drop.na = FALSE, version = 14)
write_sas(x, path, drop.na = FALSE)Arguments
- x
A data frame that should be saved as file.
- path
File path of the output file.
- drop.na
Logical, if
TRUE, taggedNAvalues with value labels will be converted to regular NA's. Else, taggedNAvalues will be replaced with their value labels. See 'Examples' andget_na.- compress
Logical, if
TRUEand a SPSS-file should be created, savesxinzsav(i.e. compressed SPSS) format.- version
File version to use. Supports versions 8-14.
