Description Usage Arguments Examples
This function allows you to combine all the files in the vector within a single df by reading them first as data.frames and then using bind_rows from dplyr package to combine them
1 | vector_to_df(v, names = F, id_col = "id", ...)
|
v |
vector of paths to the files |
names |
bool, if true the name of the files will be used to create a new column with the name 'id_col' |
id_col |
string, name of the column that will be appended to the resulting df if names is TRUE |
... |
further parameters given to readr::read_csv |
1 | vector_to_df(v = c(path1, path2), names = T, id_col = 'st_id')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.