I have a bunch of csv files that I am reading into a list like this:
f <- list.files(pattern="201\\d{5}\\.csv")
Is there any way to count how many files that I am reading in?
I have a bunch of csv files that I am reading into a list like this:
f <- list.files(pattern="201\\d{5}\\.csv")
Is there any way to count how many files that I am reading in?
Yes, length(f)
will give you the number of file names in f
.