Description Usage Arguments Value Author(s) See Also Examples
Get the final set of characters from a vector after a single-character delimeter. This can be useful in filename manipulations, among other things.
1 | grabLast(vec, split.char)
|
vec |
Character vector (usually containing filenames) |
split.char |
A single character used to split the character strings |
Character vector of the strings that appear after the last instance of split.char
Landon Sego
Additional functions for filename manipulations: stripExtension
, getExtension
,
stripPath
, getPath
, basename
, dirname
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.