write_spss2 {eatGADS} | R Documentation |
Write a GADSdat
object to txt
and SPSS
syntax
Description
Write a GADSdat
object to a text file (txt
) and an accompanying SPSS
syntax file containing all meta information (e.g. value and variable labels).
Usage
write_spss2(
GADSdat,
txtPath,
spsPath = NULL,
savPath = NULL,
dec = ".",
fileEncoding = "UTF-8",
chkFormat = TRUE,
...
)
Arguments
GADSdat |
A |
txtPath |
Path of |
spsPath |
Path of |
savPath |
Path of |
dec |
Decimal delimiter for your SPSS version. Other values for |
fileEncoding |
Data file encoding for SPSS. Default is |
chkFormat |
Whether format checks via |
... |
Arguments to pass to |
Details
This function is based on eatPreps
writeSpss
function and is currently under development.
Value
Writes a txt
and an sav
file to disc, returns nothing.
Examples
# write to spss
tmp_txt <- tempfile(fileext = ".txt")
write_spss2(pisa, txtPath = tmp_txt)