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

circularp

Attributes for a Circular Object


Description

‘circularp’ returns the ‘circularp’ attribute (or ‘NULL’). ‘circularp<-’ sets the ‘circularp’ attribute.

Usage

circularp(x)
circularp(x) <- value

Arguments

x

a vector or a matrix of circular data.

value

a vector of length 6 or a list with six components: type, units, template, modulo, zero and rotation.

Details

The circularp attribute is a list of six elements: type, units, template, modulo, zero and rotation; see circular for their meaning.

Assignments are checked for consistency.

Assigning NULL removes the circularp attribute and any "circular" class of x.

Author(s)

Claudio Agostinelli

See Also

Examples

x <- pi
circularp(x) # now NULL
circularp(x) <- list(type="angles", units="radians", template="none", 
  modulo="asis", zero=0, rotation="counter")
circularp(x)
x
class(x) <- "circular" # now we set also the class so that print.circular is used
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.