inla.mesh.query {INLA} | R Documentation |
Query information about an inla.mesh object.
inla.mesh.query(mesh, ...)
mesh |
An |
... |
Query arguments.
|
A list of query results.
Finn Lindgren finn.lindgren@gmail.com
inla.mesh.create()
, inla.mesh.segment()
,
inla.mesh.lattice()
loc <- matrix(c(0.1, 0.15), 1, 2) lattice <- inla.mesh.lattice(dims = c(10, 10)) mesh <- inla.mesh.create(loc = loc, lattice = lattice, extend = FALSE) vt <- which(inla.mesh.query(mesh, vt.neighbours = list( mesh$idx$loc, 4:6 ) )$vt.neighbours) mesh2 <- inla.mesh.create(mesh$loc, tv = mesh$graph$tv[vt, , drop = FALSE], refine = FALSE, extend = FALSE )