corename: Get core part of the file name

Description Usage Arguments Value Examples

View source: R/utils.r

Description

This is similar to the base function basename. The difference is that this also removes the file type (or extension) and thus works as a shorthand for many file operations.

Usage

1
corename(path)

Arguments

path

a path to file

Value

a core part of the file name

Examples

1
2
corename("foo/bar/file.ext") # file
corename("file.ext1.ext2") # file.ext1

bioDS/phyloRNA documentation built on Feb. 21, 2022, 3:28 p.m.