write_spss {eatGADS}R Documentation

Write a GADSdat object to a file

Description

Write a GADSdat object, which contains meta information as value and variable labels to an SPSS file (sav) or Stata file (dta). See 'details' for some important limitations.

Usage

write_spss(GADSdat, filePath)

write_stata(GADSdat, filePath)

Arguments

GADSdat

A GADSdat object.

filePath

Path of sav file to write.

Details

The provided functionality relies on havens write_sav and write_dta functions.

Currently known limitations for write_spss are:

Currently known limitations for write_stata are:

Value

Writes file to disc, returns NULL.

Examples


# write to spss
tmp <- tempfile(fileext = ".sav")
write_spss(pisa, tmp)

# write to stata
tmp <- tempfile(fileext = ".dta")
write_stata(pisa, tmp)


[Package eatGADS version 1.1.0 Index]