Description Usage Arguments Value Examples
Reads a directory of files with a given extension and creates a dataset out of it
1 2 3 4 5 6 7 8 9 | read_csv_dir(
input_path,
input_pattern = "*.csv",
recursive = F,
sep = ",",
header = T,
add_file_column = T,
verbose = T
)
|
input_path |
Input direcotry |
input_pattern |
Input pattern to search for files (default *.csv) |
recursive |
Reads recursively |
header |
Files have a header or not (default T) |
add_file_column |
Adds a column with the file name |
csv |
The expected separator (default ',') |
a new data.frame that contains all columns
1 | df <- read_csv_dir('/my/path/')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.