summary_tidiers {broom} | R Documentation |
Tidy a summary of a vector.
## S3 method for class 'summaryDefault' tidy(x, ...) ## S3 method for class 'summaryDefault' glance(x, ...)
x |
summaryDefault object |
... |
extra arguments, not used |
Both tidy
and glance
return the same object:
a one-row data frame with columns
minimum |
smallest value in original vector |
q1 |
value at the first quartile |
median |
median of original vector |
mean |
mean of original vector |
q3 |
value at the third quartile |
maximum |
largest value in original vector |
NAs |
number of NA values (if any) |
v <- rnorm(1000) s <- summary(v) s tidy(s) glance(s) v2 <- c(v,NA) tidy(summary(v2))