I would like to stack a raster dataset taking into account the number of days between images. Sometimes the number of dates between observations are 8, 16 or 365 days.
Is there any function to do it automatically?
The code that I have right now is as follows:
setwd("C:\\NDVI_prueba") rlist=list.files(pattern=".tif$", full.names=T) rasters=stack(rlist) rasters
I guess that this code does not count the separation between days and has the same interval for all the images?
The name of the files is NDVI.2000_01_01_NDVI.
Is it correct or should I give a special name to be able to determine the date in each image?