list_files | R Documentation |
list.files with full.names=TRUE & recursive=TRUE
list_files(path, pattern = NULL, full.names = TRUE, recursive = TRUE, ...)
path |
a character vector of full path names; the default corresponds to the working directory, |
pattern |
an optional regular expression. Only file names which match the regular expression will be returned. |
full.names |
a logical value. If TRUE, the directory path is prepended to the file names to give a relative file path. If FALSE, the file names (rather than paths) are returned |
recursive |
logical. Should the listing recurse into directories? |
A character vector containing the names of the files in the specified directories
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.