soft_scale: Winsorized scaling

View source: R/soft_scale.R

soft_scaleR Documentation

Winsorized scaling

Description

Replaces outliers beyond a certain number of standard deviations, ie cap, with a value at that sd.

Usage

soft_scale(input_data, cap = scale_cap)

Arguments

input_data

Numeric vector to be scaled

cap

Number indicating the number of sd that you'd like the value to be limited

Details

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ soft_scale ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Benjamin-Vincent-Lab/binfotron documentation built on April 11, 2025, 10:05 p.m.