get_terms_mapper: Get a function which maps from column names to model-terms...

Description Usage Arguments Value

Description

Get a function which maps from column names to model-terms and vice versa

Usage

1

Arguments

formula

The formula to be passed to model.frame

data

The data.frame

...

Arguments to be passed to stats::model.matrix

Value

A function that gives the model-term(s) for each original-column, or gives the original-column(s) for each model-term. You can also get original column-names from model-frame names (e.g., instead of specific levels of factor, just factor(variable) gets mapped to variable).


jwdink/tidysurv documentation built on May 20, 2019, 6:24 a.m.