Skip to contents

Read a tabular file to a tibble, inferring format from the file extension if it is not specified.

Usage

read_tabular_file(path_to_file, file_format = NULL, ...)

Arguments

path_to_file

Path to the file to read.

file_format

Format of the file to read. One of "tsv", "csv", "parquet". If NULL, will be inferred from the file extension. Default NULL.

...

Additional keyword arguments passed to the file reader function, which will be one of readr::read_csv(), readr::read_tsv(), and arrow::read_parquet(), depending on the file_format.

Value

The result of reading in the file, as a tibble.