powered by
Get the final set of characters from a vector after a single-character delimeter. This can be useful in filename manipulations, among other things.
grabLast(vec, split.char)
Character vector (usually containing filenames)
A single character used to split the character strings
Character vector of the strings that appear after the last instance of split.char
split.char
Additional functions for filename manipulations: stripExtension, getExtension, stripPath, getPath, basename, dirname
stripExtension
getExtension
stripPath
getPath
basename
dirname
# NOT RUN { grabLast(c(a="email@nowhere.com", "this.has.no.at.sign", "@", "bad.email@weird.com@", NA, "2at's@email@good.net"), "@") # }
Run the code above in your browser using DataLab