match_filenames | R Documentation |
Match a set of regular expressions to a list of files and return those filenames that comply to any of the provided regular expressions. This function basically wraps a grep to make it work on vectors by combining the vector of regex options as possible options.
match_filenames(file_list, regex_list)
file_list |
character vector. Haystack of filenames/filepaths. |
regex_list |
character vector. Needle of regular expressions to which filenames should comply. |
character vector. Subset of filenames from the file_list that comply to the provided regular expressions in regex_list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.