View source: R/calculate_median.R
calculate_median | R Documentation |
Calculate the cellwise median of two or more Raster* objects, by layer.
calculate_median(files, outfile)
files |
A vector of file paths to (optionally multiband) raster files. |
outfile |
Character. Output raster file path. If not provided, object will be returned to R. Directory will be created recursively if it does not exist. |
If outfile
is specified, the resulting raster is saved as a
geotiff to that path and NULL is returned. If outfile
is not
specified the resulting raster is returned.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.