Add empty layers in between existing layers such that the time step between each layer is the same. See approximate to estimate values for these layer (and other missing values)
methods
## S4 method for signature 'SpatRaster'fillTime(x, filename="",...)
Arguments
x: SpatRaster
filename: character. Output filename
...: list with named options for writing files as in writeRaster