to_stata: Compresses a dataframe and saves in stata format. Options to...

View source: R/utils.R

to_stataR Documentation

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

dat

dataframe

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.


rOpenHealth/rEHR documentation built on Sept. 25, 2024, 5:32 p.m.