glob | R Documentation |
Helper function for globbing character vectors
glob(x, pattern = NULL, value = TRUE, ...)
x |
A vector of characters |
pattern |
Wildcard globbing pattern |
value , ... |
Additional parameters passed to |
x <- c("apple", "banana", "peach", "pear", "orange")
glob(x, "*e")
glob(x, "pea*", value = FALSE)
glob(x, "*an*", value = NA)
path <- system.file("R", package = "mark")
glob(list.files(path), "r*")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.