View source: R/summary.circular.R
summary.circular | R Documentation |
Computes circular summary statistics including the sample size, mean direction and mean resultant length and quartiles.
## S3 method for class 'circular'
summary(object,
digits = max(3, getOption("digits") - 3), ...)
object |
an object of class |
digits |
digits to be used in printing. |
... |
parameters passed to |
Each observation is treated as a unit vector or a point on the unit circle. The resultant vector of the observations is found, and the direction of the resultant vector is returned as well as its length divided by the sample size.
Returns a vector with the sample size, the sample mean direction and the sample mean resultant length.
Claudio Agostinelli, David Andel and Alessandro Gagliardi
Jammalamadaka, S. Rao and SenGupta, A. (2001). Topics in Circular Statistics, Section 1.3, World Scientific Press, Singapore.
mean.circular
, median.circular
,
quantile.circular
, var.circular
,
mle.vonmises
, rho.circular
.
# Compute summary statistics of a random sample of observations.
data <- circular(runif(50, 0, pi))
summary(data)
summary(data.frame(data, runif(50, 0, pi)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.