Learn R Programming

lgcp (version 1.3-8)

aggregateCovariateInfo: aggregateCovariateInfo function

Description

A function called by cov.interp.fft to allocate and perform interpolation of covariate infomation onto the FFT grid

Usage

aggregateCovariateInfo(cellidx, cidx, gidx, df, fftovl, classes, polyareas)

Arguments

cellidx
the index of the cell
cidx
index of covariate, no longer used
gidx
grid index
df
the data frame containing the covariate information
fftovl
an overlay of the fft grid onto the SpatialPolygonsDataFrame or SpatialPixelsDataFrame objects
classes
vector of class attributes of the dataframe
polyareas
polygon areas of the SpatialPolygonsDataFrame or SpatialPixelsDataFrame objects

Value

  • the interpolated covariate information onto the FFT grid