0

Let's say I have a list of character strings that contain the path and name of each file. How can I ask R to extract just the names of the files from this list, and store them as character strings in an object?

Current code

path = "D:/path/to/files"
files = list.files(path, full.names = TRUE)
Mandalorian
  • 821
  • 3
  • 12

0 Answers0