Learn R Programming

broom (version 0.4.0)

summary_tidiers: Tidiers for summaryDefault objects

Description

Tidy a summary of a vector.

Usage

## S3 method for class 'summaryDefault':
tidy(x, ...)

## S3 method for class 'summaryDefault': glance(x, ...)

Arguments

x
summaryDefault object
...
extra arguments, not used

Value

  • Both tidy and glance return the same object: a one-row data frame with columns
  • minimumsmallest value in original vector
  • q1value at the first quartile
  • medianmedian of original vector
  • meanmean of original vector
  • q3value at the third quartile
  • maximumlargest value in original vector
  • NAsnumber of NA values (if any)

See Also

summary

Examples

Run this code
v <- rnorm(1000)
s <- summary(v)
s

tidy(s)
glance(s)

v2 <- c(v,NA)
tidy(summary(v2))

Run the code above in your browser using DataLab