write_tsv: Write a tab-separated file, rounding floats

View source: R/write_tsv.r

write_tsvR Documentation

Write a tab-separated file, rounding floats

Description

Write a tab-separated file, rounding floats

Usage

write_tsv(object, precision = 8, sep = "\t", ...)

Arguments

object

A data.table (or coerceable)

precision

The number of digits after the decimal point to display (default: 8)

sep

Delimiter (default ⁠\t⁠)

...

Additional options to data.table::fwrite()

Examples

dat <- data.table::data.table(a=rnorm(10), b=rexp(10))
write_tsv(dat, 4)

pbreheny/breheny documentation built on Feb. 18, 2025, 5:07 a.m.