Get File Names without Extension in R (Example Code)
In this R tutorial you’ll learn how to return file names without extensions.
Example: Deleting without Extensions in File Names Using file_path_sans_ext Function
tools::file_path_sans_ext("my_data.csv") # Apply file_path_sans_ext() # [1] "my_data" |
tools::file_path_sans_ext("my_data.csv") # Apply file_path_sans_ext() # [1] "my_data"