mysummary | R Documentation |
a more complete summary that applyes for both numeric and factor vectors.
mysummary(x, p = c(0, 0.025, 0.25, 0.5, 0.75, 0.975, 1))
x |
numeric vector or factor |
p |
percentiles for computing quantiles
when |
a named vector with the length of x
,
number of NA's and mean, sd an quantiles if x
is numeric or frequencies if x
is factor.
mysummary(iris[,1])
mysummary(iris[,2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.