R basename() Function
The basename() function in R is used to extract the last component (or the ‘base name’) of a file path. This function is helpful when retrieving the file name and effectively strips out all the directory parts of the path from a full path string. Syntax basename(path) Parameters path: It is a character vector containing … Read more