This function computes summary statistics such as quartiles, mean, and standard deviation for a numeric vector.

get_distribution_statistics(data_vector)

Arguments

data_vector

A numeric vector for which to compute summary statistics.

Value

A character string describing the summary statistics of the input vector.

Examples

# Compute summary statistics for a numeric vector
data_vector <- c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
get_distribution_statistics(data_vector)
#> [1] "Q1 = 3.25  | median = 5.5  | Q3 =  7.75  | mean = 5.5  | stdev = 3.03"