bm_shift: Mapper for element-wise shifting

View source: R/mappers.R

bm_shiftR Documentation

Mapper for element-wise shifting

Description

Create a standalone shift mapper that can be used as part of a bm_pipe. If mapper is non-null, the bm_shift() constructor returns bm_pipe(list(mapper = mapper, shift = bm_shift()))

Usage

bm_shift(mapper = NULL)

bru_mapper_shift(...)

Arguments

mapper

If non-NULL, a bru_mapper to be shifted.

...

Arguments passed on to bm_shift()

Value

A bm_shift mapper object.

See Also

bru_mapper, bru_mapper_generics

Other mappers: bm_aggregate(), bm_collect(), bm_const(), bm_expr(), bm_factor(), bm_fm_mesh_1d, bm_fmesher(), bm_harmonics(), bm_index(), bm_linear(), bm_logitaverage(), bm_logsumexp(), bm_marginal(), bm_matrix(), bm_multi(), bm_pipe(), bm_reparam(), bm_repeat(), bm_scale(), bm_sum(), bm_taylor(), bru_get_mapper(), bru_mapper()

Examples

m <- bm_shift()
ibm_eval2(m, c(1, 2, 1, 2), 1:4)


inlabru documentation built on July 28, 2026, 9:07 a.m.