pureBasename: Return file name without extension

Description Usage Arguments Value Author(s) See Also Examples

Description

As opposed to basename, this function returns the pure basename of one or multiple file names, i.e. without extension.

Usage

1
pureBasename(path, slash = FALSE)

Arguments

path

File name(s) as character.

slash

A logical determining whether to add a leading slash ("/") to the returned file name.

Value

File name(s) without extension as character.

Author(s)

Florian Detsch

See Also

basename, file_path_sans_ext.

Examples

1
2
3
fls <- system.file("external/rlogo.grd", package = "raster")
pureBasename(fls)
pureBasename(fls, slash = TRUE)

Orcs documentation built on May 2, 2019, 2:37 a.m.