DescTools (version 0.99.8.1)

Desc.numeric: Describe a numeric vector

Description

This reports a rich description of a numeric vector, consisting of the most common descriptive measures for location and variability.

Usage

## S3 method for class 'numeric':
Desc(x, main = NULL, highlow = TRUE, plotit = getOption("plotit", FALSE), ...)

Arguments

x
a single numeric vector to be described.
main
the caption for the output.
highlow
boolean. Should the highest and the lowest values be reported. This is usually a good idea and so the default is TRUE.
plotit
boolean. Should a plot be created? The vector would be plotted by means of PlotDesc.numeric, which again basically is PlotFdist. Default can b
...
further argument to be passed to methods.

Value

  • A list containing the following components:
  • lengththe length of the vector (n + NAs).
  • nthe valid entries (NAs are excluded)
  • NAsnumber of NAs
  • uniquenumber of unique values.
  • 0snumber of zeros
  • meanarithmetic mean
  • meanSEstandard error of the mean, as calculated by MeanSE.
  • quanta table of quantiles, as calculated by quantile with probs set to c(.05, .10, .25, .5, .75, .9, .95).
  • sdstandard deviation
  • vcoefcoefficient of variation: mean(x) / sd(x)
  • madmedian absolute deviation (mad)
  • IQRinterquartile range
  • skewskewness, as calculated by Skew.
  • kurtkurtosis, as calculated by Kurt.
  • highlowthe lowest and the highest values, reported with their frequencies in brackets, if > 1.

Details

The plot function used here is PlotFdist.

See Also

Desc, PlotDesc

Examples

Run this code
Desc(d.pizza$temperature)

# contains all results of:
quantile(d.pizza$temperature, na.rm=TRUE)

Run the code above in your browser using DataCamp Workspace