write.sav | R Documentation |
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
)
dat |
data.frame a data.frame to store as SPSS file. |
filepath |
string full path where and how this file should be stored |
label |
character if any provided this must be a vector of
labels. It must be of size |
add.rownames |
logical If |
compress |
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. |
convert.dates |
logical should dates be converted to SPSS format. |
tz |
character The name of the timezone convert.dates will use. |
debug |
logical print debug information. |
is_zsav |
logical explicitly create a zsav file. If the file ending zsav is used, this is selected as default. |
disppar |
optional display parameter matrix. Needs documentation. |
Writing of strings longer than 255 chars is not provided.
write.sav
returns nothing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.