Skip to contents

compute the 1st, 2nd (median) and 3rd quartiles.

Usage

quartiles(x, probs = c(0.25, 0.5, 0.75))

Arguments

x

a numeric vector

probs

the quantiles to be computed. Default to c(0.25, 0.5, 0.75).

Value

a named numeric vector. Quantiles are expressed in percentage.

Examples

x <- rnorm(100)
quartiles(x)
#>         q25         q50         q75 
#> -0.61841411 -0.06139176  0.60369933