Learn R Programming

term (version 0.1.0)

consistent_term: Consistent Terms

Description

Test whether the number of dimensions of terms in the same parameter are consistent.

Usage

consistent_term(x)

Arguments

x

The object.

Value

A logical vector indicating whether the number of dimensions is consistent.

See Also

term-vector() and npdims()

Examples

Run this code
# NOT RUN {
consistent_term(as.term(c("alpha[1]", "alpha[3]", "beta[1,1]", "beta[2,1]")))
consistent_term(as.term(c("alpha[1]", NA_term_, "beta[1,1]", "beta[2]")))
# }

Run the code above in your browser using DataLab