pureBasename {Orcs} | R Documentation |
As opposed to basename()
, this function returns the pure basename of one or
multiple file names, i.e. without extension.
pureBasename(path, slash = FALSE)
path |
File name(s) as |
slash |
A |
File name(s) without extension as character
.
Florian Detsch
ifl = tempfile(fileext = ".tif")
pureBasename(ifl)
pureBasename(ifl, slash = TRUE)