Learn R Programming

INLAspacetime (version 0.1.11)

mesh2projector: Illustrative code to build the projector matrix for SPDE models.

Description

Creates a projector matrix object.

Usage

mesh2projector(
  mesh,
  loc = NULL,
  lattice = NULL,
  xlim = NULL,
  ylim = NULL,
  dims = c(100, 100)
)

Value

the projector matrix as a list with sparse matrix object at x$proj$A..

Arguments

mesh

a 2d mesh object.

loc

a two columns matrix with the locations to project for.

lattice

Unused; feature not supported by this illustration.

xlim, ylim

vector with the boundary limits.

dims

the number of subdivisions over each boundary limits.

Warning

This is just for illustration purpose and one should consider the efficient functions available in the INLA and inlabru packages, e.g. inlabru::fm_evaluator.