Summarize a univariate vector

summarize_vec(x, round_out = TRUE, digits = NULL)

summarise_vec(x, round_out = TRUE, digits = NULL)

Arguments

x

the vector to be summarized

round_out

logical indicator if rounding should happen.

digits

NULL (default) or integer value of the number of digits for rounding. If NULL, digits is calculated to be two order of magnitude lower than the smallest value in the vector being summarized.

Value

vector with entries corresponding to the mininum, maximum, median, mean, standard deviation, and count of the observations, times, or effort, rounded based on round_out and digits.