Learn R Programming

refund (version 0.1-40)

parse_pffr_formula: Parse a pffr-style formula

Description

Extract term types and variable names from a pffr formula using `terms.formula()` with specials.

Usage

parse_pffr_formula(formula)

Value

A list with components:

response

Character string of the response variable name.

terms

A list of parsed terms, each with `type`, `varname`, and `call`.

Arguments

formula

A formula object with pffr-style terms.