calc_save: Adds together two raster layers, saves the result under path...

Description Usage Arguments

View source: R/utilities.R

Description

This takes two raster_layers x and y and a character vector as filename, calculates a new raster_layer by adding raster x and raster y and then saves it to path and returns that path

Usage

1
calc_save(x, y, path, format = "GTiff", operation = "+", ...)

Arguments

x

Raster layer

y

Raster layer

path

A character vector, the calculated Raster_layer will be stored under this path.

operation

A character vector, one of +, -, * or / specifying how x and y should be combined

...

Further parameters passed on to raster::writeRaster


sitscholl/rebecka_package documentation built on Aug. 25, 2020, 4:20 a.m.