s2bak.truncate: Truncate values based on min and max input

View source: R/s2bak_etc.R

s2bak.truncateR Documentation

Truncate values based on min and max input

Description

Truncate provided numerical values based on a defined minimum and maximum cutoff. Used in fit.bak and predict.bak.

Usage

s2bak.truncate(x, min = NA, max = NA)

Arguments

x

Numerical values to truncate

min

Minimum value to truncate, where x <= min with be min. If left as NA it will use the minimum value of x.

max

Maximum value to truncate, where x >= max with be max. If left as NA it will use the maximum value of x.

Value

Truncated x values


leung-lab/s2bak documentation built on March 1, 2023, 9:10 a.m.