is_simple: Identify 'simple' call componenets.

Description Usage Arguments Value

View source: R/formula.R

Description

A call is 'simple' if it only includes the prescribed operators in addition to arbitrary unary functions. This is significant because such a call describes a linear combination without further parsing.

Usage

1
is_simple(x, simple = c("+", ":", "("))

Arguments

x

call to check

simple

vector of operators to accept as simple.

Value

TRUE iff the call is 'simple'.


sakrejda/hierarchy documentation built on Aug. 23, 2019, 7:15 p.m.