Removes all of the path up to and including the last path separator (if any) without extensions.

file_basename(path)

Arguments

path

character vector with path names