Learn R Programming

RSurvey (version 0.7-0)

SummarizeData: Summarize Object

Description

A summary of the descriptive statistics of an array object.

Usage

SummarizeData(obj, fmt = NULL)

Arguments

obj
an array object for which the summary is desired.
fmt
character; the conversion specification format, see sprintf.

Value

  • Results are dependent on the class of obj. Returns a list with the following components:
  • Countinteger; array length.
  • NAsinteger; number of NA values.
  • Classcharacter; the objects class attribute.
  • Min., Max.numeric; extreme values with NA values ignored.
  • 1st Qu., Median, 3rd Qu.numeric; estimates of the underlying distribution quantiles with NA values ignored.
  • Meannumeric; arithmetic mean with NA values ignored.
  • St.Dev.numeric; standard deviation with NA values ignored.
  • Sumnumeric; sum with NA values ignored.
  • Histhistogram; an object of class histogram, see hist documentation for details.
  • Uniqueinteger; number of unique factors.
  • TRUE, FALSEinteger; number of TRUE and FALSE values, respectively.
  • Stringcharacter; a formatted text summary of the descriptive statistics.
  • Time Per.character; a formatted time duration.

See Also

quantile, hist

Examples

Run this code
summary(attenu$dist, digits = 4)
SummarizeData(attenu$dist, fmt = "%.2f")
SummarizeData(as.POSIXct(Sys.time() + 1:10), fmt = "%a %H:%M:%S")

Run the code above in your browser using DataLab