powered by
Convert a path to file to just its name, without the path or the extension.
path2name(...)
[character] Path to a file.
[character] The name of the file.
A combination of basename to strip the path, and tools::file_path_sans_ext to strip the extension.
basename
tools::file_path_sans_ext
# NOT RUN { sapply (list.files("~",full.names=TRUE), soundcorrs:::path2name) # }
Run the code above in your browser using DataLab