I am trying to create a vector from a list of file names in my current directory.
Say there are files, "a.txt", "b.txt", "c.txt", "D.txt" in the directory, I want to create a vector V with ("a", "b", "c", "D").
myFiles <- c("a.txt", "b.txt", "c.txt", "D.txt")
How could I achieve this in R?