as_bru_mapper: Methods for mapper extraction

View source: R/mappers.R

as_bru_mapperR Documentation

Methods for mapper extraction

Description

Extract a mapper from another object

Usage

as_bru_mapper(x)

## S3 method for class 'bru_mapper'
as_bru_mapper(x)

## S3 method for class 'bru_comp'
as_bru_mapper(x)

## S3 method for class 'bru_subcomp'
as_bru_mapper(x)

Arguments

x

Object to convert/extract

Value

A bru_mapper object

Examples

# Extract a mapper from a `bru_subcomp` object
as_bru_mapper(bru_comp("x", x, mapper = bm_index(4))$main)


inlabru-org/inlabru documentation built on July 17, 2025, 2:11 a.m.