minmax {hutilscpp}R 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.


[Package hutilscpp version 0.10.4 Index]