Selecting the first few files among many in a vector
I have a vector named rastlist that lists all of the files specified using this code: rastlist <- list.files(path = "raw_data/MODIS_TERRA/NDVI_FinalFitted", pattern=c(‘2013′,’.TIF$’), all.files=TRUE, full.names=TRUE) Here is what that object contains: The numbers after MOD09Q1_2013_ (e.g., 001, 002, 003….) refer to the days in the year. The rest of the name is the same other than… Read More Selecting the first few files among many in a vector