Learn R Programming

clickR (version 0.9.45)

extreme_values: Extreme values from a numeric vector

Description

Returns the nth lowest and highest values from a vector

Usage

extreme_values(x, n = 5, id = NULL)

Value

A matrix with the lowest and highest values from a vector

Arguments

x

A vector

n

Number of extreme values to return

id

ID column to reference the found extreme values