| check.args | R Documentation |
Checks the validity of common inputs used by spatio-temporal estimation and simulation
routines: event locations X, spatial window specification s.region, temporal window
t.region, and grid resolution n.grid.
check.args(X, s.region, t.region, n.grid = c(25L, 25L, 20L))
X |
A matrix or data frame with at least three columns giving event coordinates
|
s.region |
Spatial observation region specification. Either:
All values must be finite. |
t.region |
Numeric vector of length 2 giving |
n.grid |
Integer vector of length 3 giving the number of grid cells in the |
This function is intended as a lightweight argument checker used internally by multiple functions. It can also be called directly for debugging input issues.
Invisibly returns NULL. Called for its side effect of throwing an error if inputs are invalid.
X <- cbind(runif(100), runif(100), runif(100, 0, 10))
s.region <- matrix(c(0,0, 1,0, 1,1, 0,1), ncol = 2, byrow = TRUE)
t.region <- c(0, 10)
check.args(X, s.region, t.region, n.grid = c(25, 25, 20))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.