fileExtension | R Documentation |
Get Extension of Full File Paths
fileExtension(x)
x |
vector of file paths |
# Define example paths
paths <- c("C:/example/file.csv", "file2.txt", "D:/e/f/ghi.jkl.zip")
# Get the file name extensions
fileExtension(paths)
# Empty string is returned for paths without file name extensions
fileExtension("C:/NEWS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.