View source: R/read_table_flex.R
| read_table_flex | R Documentation |
Robust table reader with auto delimiter detection for .csv, .tsv, .txt,
and their .gz variants. Uses data.table::fread() and prints CLI messages.
read_table_flex(
file_path,
sep = NULL,
encoding = "UTF-8",
header = TRUE,
df = TRUE,
verbose = FALSE
)
file_path |
Character. Path to the file to be read. |
sep |
Optional. Field delimiter. If |
encoding |
Character. File encoding accepted by fread: "unknown", "UTF-8", or "Latin-1". |
header |
Logical. Whether the file contains a header row. Default: |
df |
Logical. Return data.frame instead of data.table. Default: |
verbose |
Logical. Show progress and details. Default: |
A data.frame (default) or data.table depending on df parameter.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.