Learn R Programming

term (version 0.3.5)

is_term: Is Term

Description

Tests whether an R object inherits from S3 class term.

Usage

is_term(x)

Value

A flag indicating whether the test was positive.

Arguments

x

The object.

Details

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

See Also

term-vector(), vld_term(), valid_term() and consistent_term()

Examples

Run this code
is_term(c("parameter[2]", "parameter[10]"))
is_term(term("parameter[2]", "parameter[10]"))

Run the code above in your browser using DataLab