fread.dtb: data.table::fread variant that reads compressed files.

Description Usage Arguments Value Examples

View source: R/utils4.data.table.R

Description

Convenience wrapper around fread that automatically deals with compressed files. Currently supported are gzip and bzip2 compressions.

Usage

1

Arguments

file

path to a CVS file. If it has extensions .gz or .bz2 (case-insensitive) decompress on a fly.

...

other fread parameters.

Value

data.table instance.

Examples

1
2
3
4
## Not run: 
dtb <- fread.dtb('foo.bz2', colClasses='character')

## End(Not run)

slonik-az/LRutil documentation built on May 7, 2019, 3:17 p.m.