trimFileName | R Documentation |
Trim path and extension of a file
trimFileName(path, extension = NULL, sep = "/")
path |
character string containing the name of the path or file to trim |
extension |
character string containing the extension file |
sep |
character string separating path elements. "/" is default value. |
fileName character string of the trimmed filed name
## Not run:
pathName <- "folder/subfolder/testFile.txt"
trimFileName(pathName, extension = "txt")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.