to.uniform {tiger} | R Documentation |
Transform data to uniform distribution. Optionally, a set of values can be transformed against a reference set of data.
to.uniform(ref, val = NA)
ref |
Set of values that determince the transformation |
val |
Values to be transformed |
If values is NA, the reference set itself will be transformed.
Vector with transformed values.
Dominik Reusser
a <- rnorm(100) hist(a) b <- to.uniform(a) hist(b) c <- to.uniform(ref=a, val=c(-0.5,0,0.5))