circularp | R Documentation |
‘circularp’ returns the ‘circularp’ attribute (or ‘NULL’). ‘circularp<-’ sets the ‘circularp’ attribute.
circularp(x)
circularp(x) <- value
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. |
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
.
Claudio Agostinelli
circular
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.