Read a Feather file

read_feather(file, col_select = NULL, as_data_frame = TRUE, ...)

Arguments

file

A character file path, a raw vector, or InputStream, passed to FeatherTableReader$create().

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 data.frame or an arrow::Table?

...

additional parameters

Value

A data.frame if as_data_frame is TRUE (the default), or an arrow::Table otherwise

Examples

# \donttest{ try({ tf <- tempfile() on.exit(unlink(tf)) write_feather(iris, tf) df <- read_feather(tf) dim(df) # Can select columns df <- read_feather(tf, col_select = starts_with("Sepal")) }) # }