Removes file extension (and path) from string

rm.ext(x)

Arguments

x

A character vector representing a file with extension

Value

The file name with extension and file path stripped off

Examples

rm.ext("C:/path/file.txt")
#> [1] "file"