write_csv: write_csv helper function

View source: R/utils.R

write_csvR Documentation

write_csv helper function

Description

Internal function to store the created tables in csv files.

Usage

write_csv(table, filename)

Arguments

table

A data.table object to store on the local file system

filename

The file name (including the path) to store table.

Value

This function silently writes a 'data.table' object to a CSV file.

See Also

fwrite

Examples

table <- data.table::data.table(
  a = stats::runif(1000),
  b = stats::runif(1000)
)

write_csv(table, paste0(tempdir(), "/example.csv"))


rBiasCorrection documentation built on June 21, 2022, 1:05 a.m.