Description Usage Arguments Details Value Examples
Essentially a slight tweak to the base R summary.
1 | num_summary(x, digits = 1, extra = FALSE)
|
x |
A numeric or logical variable |
digits |
Argument to |
extra |
Add things like number distinct, number of zeros, and more as I think of them. |
Takes a numeric variable and provides sample size, mean, standard deviation, min, first quartile, median, third quartile, and max, and number of NAs. Extras include the number of distinct values, and the number of zeros.
A data.frame containing those values.
1 2 3 | library(tidyext)
num_summary(c(1:10, NA))
num_summary(c('1','2','3'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.