I have a folder that contains files with names "5_45name.Rdata"and "15_45name.Rdata".
I would like to specify only those starting with "5", in the example above means that I would like to exclude "15_45name.Rdata".
Usage list.files(pattern="5_*name.Rdata"), however, will list both of these files.
Is there a way to tell list.files () that I want the file name to start with a specific character?
source
share