Get Extension of Full File Paths
Examples
# Define example paths
paths <- c("C:/example/file.csv", "file2.txt", "D:/e/f/ghi.jkl.zip")
# Get the file name extensions
fileExtension(paths)
#> [1] "csv" "txt" "zip"
# Empty string is returned for paths without file name extensions
fileExtension("C:/NEWS")
#> [1] ""