View source: R/addBeforFileExtension.R
addBeforFileExtension | R Documentation |
This function helps changing charater srings like file-names and allows adding the character vector 'add' (length 1) before the extension (defined by last '.') of the input string 'x'. Used for easily creating variants/additional filenames but keeping current extension.
addBeforFileExtension(
x,
add,
sep = "_",
silent = FALSE,
callFrom = NULL,
debug = FALSE
)
x |
main character vector |
add |
character vector to be added |
sep |
(character) separator between 'x' & 'add' (character, length 1) |
silent |
(logical) suppress messages |
callFrom |
(character) allow easier tracking of messages produced |
debug |
(logical) additional messages for debugging |
modified character vector
addBeforFileExtension(c("abd.txt","ghg.ijij.txt","kjh"),"new")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.