Skip to contents

Scales a numeric vector to the 0-1 range using the 5th and 95th percentiles as thresholds to handle outliers.

Usage

range01(x)

Arguments

x

A numeric vector.

Value

A numeric vector scaled between 0 and 1.