minmax: Minimum and maximum

View source: R/minmax.R

minmaxR Documentation

Minimum and maximum

Description

Minimum and maximum

Usage

minmax(x, empty_result = NULL, nThread = getOption("hutilscpp.nThread", 1L))

Arguments

x

An atomic vector.

empty_result

What should be returned when length(x) == 0?

nThread

Number of threads to be used.

Value

Vector of two elements, the minimum and maximum of x, or NULL.


hutilscpp documentation built on Oct. 11, 2023, 9:06 a.m.