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

write_spss(x, path, = FALSE, compress = FALSE)

write_stata(x, path, = FALSE, version = 14)

write_sas(x, path, = FALSE)



A data frame that should be saved as file.


File path of the output file.

Logical, if TRUE, tagged NA values with value labels will be converted to regular NA's. Else, tagged NA values will be replaced with their value labels. See 'Examples' and get_na.


Logical, if TRUE and a SPSS-file should be created, saves x in zsav (i.e. compressed SPSS) format.


File version to use. Supports versions 8-14.