Create replace missing values in raster.r