Tests whether an R object inherits from S3 class term.

is_term(x)

Arguments

x

The object.

Value

A flag indicating whether the test was positive.

Details

It does not test the validity of consistency of the term elements.

Examples

is_term(c("parameter[2]", "parameter[10]"))
#> [1] FALSE
is_term(term("parameter[2]", "parameter[10]"))
#> [1] TRUE