Description Usage Arguments Value Examples
Do Subfolder List Elements Start with Given Folder Names?
1 | starts_with_parts(parts, elements)
|
parts |
list of list of character as returned by
|
elements |
vector of character giving the sequence of strings to be
found in |
vector of logical as long as parts
containing TRUE
at
positions i
for which all(parts[[i]][seq_along(elements)] ==
elements)
is TRUE
1 2 3 4 5 6 7 | parts <- strsplit(c("a/b/c", "a/b/d", "b/c"), "/")
starts_with_parts(parts, elements = c("a", "b"))
starts_with_parts(parts, elements = c("b", "c"))
subdir_matrix <- kwb.file::to_subdir_matrix(parts)
starts_with_parts(subdir_matrix, elements = c("a", "b"))
starts_with_parts(subdir_matrix, elements = c("b", "c"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.