Reads the first n_rows of a tabular data file (csv/tsv/txt/dat/xlsx/xls/
ods/fods/sav/dta/sas7bdat/rds/rda/rdata). Delimiter and header presence are
auto-detected for delimited text; invalid UTF-8 triggers a latin1 retry.
Reading .ods/.fods needs the suggested readODS package; without it the
function returns NULL for those formats.
Arguments
- path
path to a data file
- n_rows
number of rows to read (
Inffor all)- sheet
for
.xlsx/.xlsonly: sheet name or 1-based index to read.NULL(default) reads the workbook's first sheet, matchingreadxl::read_excel()'s own default.
