eval_in_data_context: Evaluate expressions in the data context

View source: R/bru.inference.R

eval_in_data_contextR Documentation

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()
)

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

Value

The result of expression evaluation


inlabru-org/inlabru documentation built on April 25, 2024, 2:43 p.m.