summarize_vec: Summarize a univariate vector

Description Usage Arguments Value

View source: R/summary_stats.R

Description

Summarize a univariate vector

Usage

1
2
3
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.


weecology/MATSS documentation built on May 15, 2020, 7:03 p.m.