calcMinMax: Calculate min and max

View source: R/misc.R View source: R/misc.R

calcMinMaxR Documentation

Calculate min and max

Description

Wrapper function around min and max that returns as a vector the minimum and maximum of a vector.

Usage

calcMinMax(x)

Arguments

x

A numeric vector.

Value

A named numeric vector of the minimum and maximum value.

Examples

calcMinMax(rnorm(20))
calcMinMax(1:10)

MiguelRodo/ggboot documentation built on Nov. 9, 2023, 5:45 p.m.