Learn R Programming

hutilscpp (version 0.10.10)

minmax: Minimum and maximum

Description

Minimum and maximum

Usage

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

Value

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

Arguments

x

An atomic vector.

empty_result

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

nThread

Number of threads to be used.