powered by
Gets the number of unique term elements of an object.
nterms(x, ...)# S3 method for term nterms(x, ...)
# S3 method for term nterms(x, ...)
The object.
Unused.
A count of the number of terms.
term: Number of unique term elements of term vector
term
By default if the vector includes missing values then it returns NA_integer_.
term-vector()
# NOT RUN { nterms(as.term(c("alpha[1]", "alpha[2]", "beta[1,1]", "beta[2,1]"))) nterms(as.term(c("alpha[1]", "alpha[1]", "beta[1,1]", "beta[1,1]"))) # }
Run the code above in your browser using DataLab