I'm trying to create a list of files within a directory that match the version of specific .csv files within the directory. The file names are "NH [V2].csv" and they range from "NH [V2].csv" to "NH [V10].csv".
How can I create a list that only takes the range that goes from 2-10 but excludes all others e.g. "NH [V1].csv"
This is what I have so far, however it's returning an empty list.
nhlist = list(glob.glob('NH [V[2-9]].csv'))
I'm trying to to then import all those .csv files into a data.frame as one would do in R.
Thanks in advance.