View source: R/summary_functions.R
iqr | R Documentation |
A set of functions to calculate numerical summaries. The functions set na.rm = TRUE
by default and will print a warning when data contains missing values, (NA
s).
iqr(x, ...)
IQR(x, ...)
SAD(x, ...)
MAD(x, ..., na.rm = TRUE)
max(x, ...)
mean(x, ...)
median(x, ...)
min(x, ...)
prod(x, ...)
quantile(x, ...)
range(x, ...)
sd(x, ...)
sum(x, ...)
var(x, ...)
cor(x, y = NULL, ..., data = NULL)
x |
A vector of values or a formula. Formulas should be of the form |
data |
A data set where variables supplied to the formula, |
data(cdc)
mean(1:10)
mean(~height, data = cdc)
mean(~height | gender, data = cdc)
MAD(1:10)
MAD(~height, data = cdc)
MAD(~height | gender, data = cdc)
quantile(~height, data = cdc)
quantile(~height, data = cdc, probs = 0.6)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.