guessWriteFcn: Return function for writing common file types

Description Usage Arguments Details Value Examples

Description

Return function for writing common file types

Usage

1
guessWriteFcn(filename)

Arguments

filename

file to be written

Details

Uses the file suffix to return write.csv, png, pdf, save, saveRDS

Value

function for writing file

Examples

1
2
3
4
## Not run: 
 identical(utils::write.csv,guessWriteFcn("data.csv"))

## End(Not run) 

adapr documentation built on May 1, 2019, 7:05 p.m.