I have seen a lot of people using the dollar sign $ after .csv when listing a bunch of files, e.g.
filenames <- list.files(path='fake/path/name',pattern='*.csv$')
However, when I was working on a project, it worked for me without the dollar sign. My code is
filenames <- list.files(path='fake/path/name',pattern='*.csv')
I haven't found a clear explanation of what this dollar sign does exactly in this situation. All of my files were listed in both usages. Does anyone know what difference this dollar sign makes?