ifelse_clip: Clip lamb values between a minimum x and maximum y.

View source: R/adaptive_utils.R

ifelse_clipR Documentation

Clip lamb values between a minimum x and maximum y.

Description

Clips a numeric vector between two values.

Usage

ifelse_clip(lamb, x, y)

Arguments

lamb

Numeric vector. Values to be clipped.

x

Numeric. Lower bound of the clip range.

y

Numeric. Upper bound of the clip range.

Value

Numeric vector. Clipped values.

Examples

lamb <- c(1, 2, 3, 4, 5)
ifelse_clip(lamb, 2, 4)


banditsCI documentation built on April 12, 2025, 1:42 a.m.