Read all .csv
files in a directory, with labels if specified.
Usage
read_all_csv(
path,
...,
labels_from = NULL,
clean_names_fun = NULL,
read_fun = "guess",
datetime_extraction = "guess",
verbose = getOption("edc_read_verbose", 1)
)
Arguments
- path
[
character(1)
]
path to the directory containing.csv
files.- ...
unused
- labels_from
[
misc
]
list of path to file containing the labels.- clean_names_fun
[
function
]
a function to clean column names, e.g. tolower,janitor::clean_names()
,...- read_fun
[
function
]
a function to read the files in path, e.g.read.csv()
,read.csv2()
,...- datetime_extraction
[
dateish(1)
]
the datetime of database extraction (database lock). If "guess", the datetime will be inferred from the files modification time.- verbose
[
numeric(1)
]
the level of verbosity