whomademe: Recover the function that created a model

View source: R/class-fun_cpt.R

whomademeR Documentation

Recover the function that created a model

Description

Recover the function that created a model

Usage

whomademe(x, ...)

Arguments

x

A character giving the name of a model. To be passed to model_name().

...

currently ignored

Details

Model objects (inheriting from mod_cpt) know the name of the function that created them. whomademe() returns that function.

Value

A function

See Also

Other model-fitting: fit_lmshift(), fit_meanshift(), fit_meanvar(), fit_nhpp(), model_args(), model_name(), new_fun_cpt()

Examples

# Get the function that made a model
f <- whomademe(fit_meanshift_norm(CET, tau = 42))
str(f)


tidychangepoint documentation built on April 4, 2025, 4:31 a.m.