stretch_values: Stretch values

View source: R/miscellaneous_functions.R

stretch_valuesR Documentation

Stretch values

Description

Values above the mean of x are made larger and values below the mean are made smaller - each by lambda * dist(x, mean(x)).

Usage

stretch_values(x, lambda = 0)

Arguments

x

A numeric vector.

lambda

A numeric value. The stretching factor applied to x.

Value

A numeric vector of the size of x.


DrylandEcology/rSW2utils documentation built on Dec. 9, 2023, 10:44 p.m.