How to Get Extension of a File in R
If you want to put data validation in progress, you must identify the file type or “MIME Type” before processing. To identify the file type, we might need to check its extension. Here are two ways to get an extension of a file in R: Using the tools::file_ext() Using regular expression Method 1: Using the … Read more