Learn R Programming

term (version 0.3.5)

scalar_term: Scalar Term

Description

Test whether each term is a scalar.

Usage

scalar_term(x)

Value

A logical vector indicating whether the term is a scalar.

Arguments

x

The object.

Examples

Run this code
scalar_term(term("alpha[1]", "alpha[3]", "beta[1]", "sigma[3]"))
scalar_term(term("alpha[1]", NA_term_, "beta[1]", "beta[3]"))

Run the code above in your browser using DataLab