write_table: Write a 'data.table' to file

Description Usage Arguments Examples

Description

Can be a plain text file or a BGZIP file.

Usage

1
write_table(x, file_path, tabix_index = TRUE, ...)

Arguments

file_path

Path of the output file. If the extension name is .gz or .bgz, the output will be compressed in BGZIP format.

tabix_index

If TRUE, and file_path indicates a gzip file, will create create the tabix index file.

...

Other arguments passed to methods. Compliant with data.table::fwrite.

Examples

1
2
write_tabix_table(data, "example.bed")
write_tabix_table(data, "example.bed.gz", tabix_index = TRUE)

haizi-zh/bioessentials documentation built on April 10, 2021, 2:34 p.m.