read_parquet: Read parquet file

View source: R/read_parquet.R

read_parquetR Documentation

Read parquet file

Description

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

Usage

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)
#### Read the parquet file back into R ####
dat2 <- echodata::read_parquet(path=path)

RajLabMSSM/echodata documentation built on Nov. 21, 2023, 8 a.m.