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"

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed

Menu
Top