clip_within_range: Clip a vector to lie within a range

View source: R/utils.R

clip_within_rangeR Documentation

Clip a vector to lie within a range

Description

This function clips a vector to lie within a range.

Usage

clip_within_range(x, range)

Arguments

x

A vector, to be clipped.

range

A vector of two numbers, used to clip x.

Value

A vector, as inputted, solely comprising values within the range specified by range, inclusive.

Author(s)

Edward Lavender


edwardlavender/prettyGraphics documentation built on Jan. 19, 2025, 2:47 p.m.