sample.quad: Generate regular grid of quadrature points with environmental...

Description Usage Arguments Value Author(s) Examples

Description

This function generates a regular grid of quadrature points and associated environmental data at a nominated spatial resolution.

Usage

1
sample.quad(env.grid, sp.scale, coord = c("X", "Y"), file = "Quad")

Arguments

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.

file

An optional argument containing the prefix of the name of the saved file. The default is "Quad" so that a matrix generated at a spatial resolution of 1 would be saved in the file "Quad1.RData". A file is saved for every resolution given in sp.scale.

Value

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 file names containing the saved matrices of quadrature points stored as dat.quad.

Author(s)

Ian W. Renner

Examples

1
2
data(BlueMountains)
quad.1 = sample.quad(env.grid = BlueMountains$env, sp.scale = 1, file = "Quad")

ppmlasso documentation built on May 2, 2019, 8:20 a.m.