export_fn: Exports to a variety of formats based on the file type argument
Description
Exports to a variety of formats based on the file type argument
Usage
export_fn(x, file, ...)
Arguments
x
object to be exported
file
character path to the file to be exported to
...
arguments to be passed to the export functions
File type is based on the file suffix and can be one of "txt", "csv", "rda", "dta".
dta files use foreign::write.dta.
If a match is not found, the file is written to std.out