save_tables: Save list of tables at once

Description Usage Arguments Examples

Description

save_tables exports the table input(s) to the designated directory in .csv, .feather, or both formats.

Usage

1
save_tables(tables, filenames, dir = NA, format = NA)

Arguments

tables

A list of data frames.

filenames

A character vector of filenames.

dir

A character value for a path to a directory where the tables will be stored. If missing, each table is exported to the working directory.

format

A character value for the output format. feather or csv. If missing, each table is exported in both formats.

Examples

1
2
3
4
5
## Export a single table
save_tables(tbl, "tbl")

## Export multiple tables
save_tables(list(tbl1, tbl2), c("tbl1", "tbl2"), dir="data", format="csv")

bobaekang/icjiaRworkshop documentation built on May 17, 2019, 10:12 p.m.