path2name: Extract file name from path string.

Description Usage Arguments Details Value Examples

Description

Convert a path to file to just its name, without the path or the extension.

Usage

1

Arguments

x

[character] Path to a file.

Details

A combination of basename to strip the path, and tools::file_path_sans_ext to strip the extension.

Value

[character] The name of the file.

Examples

1
sapply (list.files("~",full.names=TRUE), soundcorrs:::path2name)

soundcorrs documentation built on Nov. 16, 2020, 5:09 p.m.