creates subset of data file using a list