formula_labels: Get term labels from a formula.

Description Usage Arguments Value

View source: R/utility.R

Description

The function attr(stats::terms(formula), "term.labels") does not include the intercept.

Usage

1
formula_labels(formula, include_intercept = TRUE)

Arguments

formula

A formula object.

Value

A character vector including all terms of the formula.


JonasMoss/straussR documentation built on May 17, 2019, 7:02 p.m.