to_stata: Compresses a dataframe and saves in stata format. Options to save as Stata 12 or 13.
Description
Automatically compresses data to reduce file size
Usage
to_stata(dat, fname, stata13 = FALSE, ...)
Arguments
fname
character string: filepath to save to
stata13
logical Save as Stata13 compatible format?
...
arguments to be passed to compress
Details
Defaults to saving compressed dates to integer days from 1960-01-01
which is the standard in stata.