export_fn: Exports to a variety of formats based on the file type...

View source: R/utils.R

export_fnR Documentation

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


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