Function to write an SPSS sav or zsav file from a data.frame().
write.sav(
dat,
filepath,
label,
add.rownames = FALSE,
compress = FALSE,
convert.dates = TRUE,
tz = "GMT",
debug = FALSE,
is_zsav = FALSE,
disppar
)
data.frame a data.frame to store as SPSS file.
string full path where and how this file should be stored
character if any provided this must be a vector of
labels. It must be of size ncol(dat)
logical If TRUE
, a new variable rownames
will be added to the sav-file.
logical should compression be used. If TRUE some integers will be stored more efficiently. Everything will be stored in chunks of 8 chars. Reduces memory size of sav-file.
logical should dates be converted to SPSS format.
character The name of the timezone convert.dates will use.
logical print debug information.
logical explicitly create a zsav file. If the file ending zsav is used, this is selected as default.
optional display parameter matrix. Needs documentation.
write.sav
returns nothing
Writing of strings longer than 255 chars is not provided.