genericize: Turn a modelling function into an S3 modelling generic

Description Usage Arguments Value

Description

Call this function for its side effects: (1) creating an S3 generic of the passed modelling function, (2) creating a default method that's exactly the X/y interface to formulize, (3) creating a formula method with formulize.

Usage

1
genericize(f, fname = NULL)

Arguments

f

Modelling function to turn into a generic.

fname

Optional name of new generic. Useful because otherwise the created generic masks the original modelling function.

Value

Nothing.


formulize documentation built on May 2, 2019, 6:08 a.m.