Update replace missing values in raster.r