Read a Feather file
read_feather(file, col_select = NULL, as_data_frame = TRUE, ...)
file | A character file path, a raw vector, or |
---|---|
col_select | A character vector of column names to keep, as in the
"select" argument to |
as_data_frame | Should the function return a |
... | additional parameters |
A data.frame
if as_data_frame
is TRUE
(the default), or an
arrow::Table otherwise
# \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")) }) # }