[R] extracting data files names with odd numbers from folder

CHANCE CARTER ch@nce257 @end|ng |rom comc@@t@net
Mon Apr 4 07:28:04 CEST 2022


I have a selection of data files saved as:
File1.csv
File2.csv
File3.csv
File4.csv
.
.
.
File100.csv

I need to extract the odd numbered files.
I have tried using the list.files function but I do not understand how to set pattern ="???" in order to extract the odd file names

list.files(path, pattern= "????????",... )

	[[alternative HTML version deleted]]



More information about the R-help mailing list