circular (version 0.4-93)

unique.circular: Extract Unique Elements from a circular vector

Description

unique.circular returns a circular vector but with duplicate elements removed.

Usage

# S3 method for circular
unique(x, …)

Arguments

x

a vector or a data frame or an array or NULL.

parameters passed to unique.default

Value

An object of the same type of x, but if an element is equal to one with a smaller index, it is removed.

Details

This is a method for circular object. See the documentation of unique.

See Also

unique

Examples

Run this code
# NOT RUN {
x <- rvonmises(10, circular(0), 10)
unique(x)

# }

Run the code above in your browser using DataCamp Workspace