Learn R Programming

inlabru (version 2.11.1)

eval_in_data_context: Evaluate expressions in the data context

Description

Evaluate expressions in the data context

Usage

eval_in_data_context(
  input,
  data = NULL,
  response_data = NULL,
  default = NULL,
  .envir = parent.frame()
)

Value

The result of expression evaluation

Arguments

input

An expression to be evaluated

data

Likelihood-specific data, as a data.frame or SpatialPoints[DataFrame] object.

response_data

Likelihood-specific data for models that need different size/format for inputs and response variables, as a data.frame or SpatialPoints[DataFrame] object.

default

Value used if the expression is evaluated as NULL. Default NULL

.envir

The evaluation environment