Description Usage Arguments Value Examples
Collapse a character vector to a slash-delimited string.
1 | collapse_slash(vector, forward = TRUE, terminal_slash = TRUE)
|
vector |
The character vector to collapse (2 or more elements). |
forward |
Logical indicating whether a forward slash (TRUE) should be used or a doubled-backslash (FALSE) |
terminal_slash |
Logical indicating whether the string should be terminated by a slash. |
A single element character vector containing all the elements of
vector
separated by slashes.
1 2 3 4 | collapse_slash(c("www.github.com", "seaaan", "easieR"))
collapse_slash(c("~", "Documents", "Important",
"passwords-in-plain-text.txt"), terminal_slash = FALSE)
collapse_slash(c("backslashes", "are", "doubled"), forward = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.