Learn R Programming

term (version 0.1.0)

unique.term: Extract Unique Terms

Description

Extracts unique elements from a term vector.

Usage

# S3 method for term
unique(x, incomparables = FALSE, ...)

Arguments

x

The object.

incomparables

Ignored.

...

Unused.

Value

A vector of unique terms.

See Also

term-vector()

Examples

Run this code
# NOT RUN {
unique(as.term(c("b", "a", "a[1]", "a", NA, "aa", NA)))
# }

Run the code above in your browser using DataLab