Read a file, the function chosen to read the file is dependant on the file path.
- .rdsuses- readr::read_rds().
- .csvand- .gzuse- readr::read_csv(). Note that this assumes any file ending with- .gzis a zipped CSV which isn't necessarily true!
- .parquetuses- arrow::read_parquet().
Arguments
- path
- The file path to be read 
- 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?
- ...
- Addition arguments passed to the relevant function. 
Value
the data a tibble