smry | R Documentation |
Extended summary function for numeric objects, with 13 summary statistics.
smry(x, ...)
## Default S3 method:
smry(x, na.rm=TRUE, digits = max(3, getOption("digits")-3), ...)
## S3 method for class 'zoo'
smry(x, na.rm=TRUE, digits = max(3, getOption("digits")-3), ...)
## S3 method for class 'Date'
smry(x, na.rm=TRUE, digits = max(3, getOption("digits")-3), ...)
## S3 method for class 'matrix'
smry(x, na.rm=TRUE, digits = max(3, getOption("digits")-3), ...)
## S3 method for class 'data.frame'
smry(x, na.rm=TRUE, digits = max(3, getOption("digits")-3), ...)
x |
a numeric object, vector, matrix or data.frame, for which a summary is desired. |
na.rm |
a logical value indicating whether 'NA' values should be stripped before the computation proceeds. |
digits |
numeric, with the amount of decimal places to be included in the result |
... |
further arguments passed to or from other methods. |
Computed summary statistics are:
Min |
Minimum |
1stQ |
First quartile (lower-hinge) |
Mean |
Mean value |
Median |
Median |
3rdQ |
Third quartile ( upper-hinge |
Max |
Maximum of the input values. |
IQR |
Interquartile Range. |
sd |
Standard deviation. It uses 'n-1' as denominator. |
cv |
Coefficient of variation ( |
skewness |
Skewness (using e1071 package) |
kurtosis |
Kurtosis (using e1071 package) |
n |
Total number of elements |
NA's |
Amount of missing values |
Skewness and Kurtosis are computed with the e1071 package
Mauricio Zambrano-Bigiarini mzb.devel@gmail
summary
, fivenum
, IQR
, sd
, skewness, kurtosis
## Loading the monthly time series of precipitation within the Ebro River basin.
data(EbroPPtsMonthly)
## Summary of monthly precipitation values for the first 7 stations in 'EbroPPtsMonthly'
smry(EbroPPtsMonthly[,2:8])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.