arrow (version 0.16.0.2)

read_feather: Read a Feather file

Description

Read a Feather file

Usage

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

Run this code
# NOT RUN {
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"))
# }

Run the code above in your browser using DataLab