Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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 class 'circular'
unique(x, ...)

Arguments

x

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

...

parameters passed to unique.default

Details

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

Value

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

See Also

Examples

x <- rvonmises(10, circular(0), 10)
unique(x)

circular

Circular Statistics

v0.4-93
GPL-2
Authors
Ulric Lund <ulund@calpoly.edu> [aut], Claudio Agostinelli <claudio.agostinelli@unitn.it> [aut, cre], Hiroyoshi Arai <h_arai@aoni.waseda.jp> [ctb], Alessando Gagliardi <gagliardi@stud.unive.it> [ctb], Eduardo Garcia Portugues <edgarcia@est-econ.uc3m.es> [ctb], Dimitri Giunchi <dimitri.giunchi@unipi.it> [ctb], Jean-Olivier Irisson <irisson@normalesup.org> [ctb], Matthew Pocernich <pocernic@ucar.edu> [ctb], Federico Rotolo [ctb]
Initial release
2017-06-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.