Import a file in parquet format as a data.table.

read_parquet(path, verbose = TRUE, ...)

Arguments

path

Path to parquet file.

verbose

Print messages.

...

Arguments passed on to arrow::read_parquet

file

A character file name or URI, raw vector, an Arrow input stream, or a FileSystem with path (SubTreeFileSystem). If a file name or URI, an Arrow InputStream will be opened and closed when finished. If an input stream is provided, it will be left open.

col_select

A character vector of column names to keep, as in the "select" argument to data.table::fread(), or a tidy selection specification of columns, as used in dplyr::select().

as_data_frame

Should the function return a tibble (default) or an Arrow Table?

props

ParquetArrowReaderProperties

Examples

 
#### Write a parquet file ####
dat <- echodata::BST1
path <- echodata::write_parquet(dat)
#> Loading required namespace: arrow
#> Writing parquet file ==> /tmp/RtmpLQCV4M/filebea0448814ae.parquet
#### Read the parquet file back into R ####
dat2 <- echodata::read_parquet(path=path)
#> Reading parquet file.