basename | R Documentation |
Overloads basename with option to remove extensions
basename(path, remove.extension = FALSE)
path |
string or vector of strings of file names |
remove.extension |
logical whether to remove extension (including dot), defaults to FALSE |
basename("/dir1/dir2/file.ext", remove.extension = TRUE) basename("/dir1/dir2/file.name.ext", remove.extension = TRUE) basename("/dir1/dir2/file.ext")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.