View source: R/ppmlasso/R/ppmlasso_functions.R View source: R/ppmlasso_functions.R
sampleQuad | R Documentation |
This function generates a regular grid of quadrature points and associated environmental data at a nominated spatial resolution.
sampleQuad(env.grid, sp.scale, coord = c("X", "Y"), quadfilename = "Quad", tol = 0.01,
writefile = TRUE)
env.grid |
The geo-referenced matrix of environmental grids. It must have a vector of longitude and a vector of latitude. |
sp.scale |
The spatial resolution at which to sample quadrature points. |
coord |
A vector containing the names of the longitude and latitude coordinates. |
quadfilename |
An optional argument containing the prefix of the name of the saved file. The
default is |
tol |
An optional argument to specify the tolerance level of coordinate error passed to an internal call to the |
writefile |
A logical argument to determine whether the output should be written to a file or not. If |
The output is a matrix of quadrature points at the spatial resolution
supplied to sp.scale
. If a vector of resolutions is supplied, the output is a list of
matrices for each spatial resolution.
Ian W. Renner
data(BlueMountains)
quad.1 = sampleQuad(env.grid = BlueMountains$env, sp.scale = 1, quadfilename = NA,
writefile = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.