swrite: Safe CSV writer

View source: R/write.R

swriteR Documentation

Safe CSV writer

Description

Sorts by key and checks duplicates. Does not overwrite existing file.

Usage

swrite(x, file, key = NULL, na = "", create = FALSE, ...)

Arguments

x

the data to write. It gets internally coerced to data.table preserving col names but not row names.

file

the output file name.

key

one or more column names to check duplicates.

na

the string to use for missing values in the data.

create

if TRUE, creates the directory if it does not exist.

...

additional arguments passed to fwrite.

Value

The file name.


eguidotti/eap documentation built on Sept. 4, 2024, 3:43 a.m.