insertRaster: Insert new values into a Raster* template

Description Usage Arguments Value See Also

Description

Given a template raster, new set of values for non-missing cells and optional index for non-missing cells, create a Raster* object containing the new values. The raster object will be replicate to have as many layers as the new dataframe has columns.

Usage

1
insertRaster(raster, new_vals, idx = NULL)

Arguments

raster

a Raster* object with non-NA cells in which to insert new_vals

new_vals

a dataframe of new values to put in the non-NA cells of raster, with values from each row in a separate layer

idx

an optional index giving the cell numbers corresponding to the rows of new_vals. If not provided, it will be calculated from raster using cellIdx.

Value

a RasterBrick object with the same extent and resolution as raster and as many layers as the number of columns in new_vals.

See Also

Other GIS: bufferMask, condSim, getArea, getPoints, ll2cart, makeVoronoiPolygons, safeMask, sortPolyData


SEEG-Oxford/seegMBG documentation built on May 9, 2019, 11:08 a.m.