powered by
rtemis preproc: Adjusts the dynamic range of a vector or matrix input. By default normalizes to 0-1 range.
rtemis preproc
drange(x, lo = 0, hi = 1, byCol = TRUE)
Numeric vector or matrix / data frame: Input
Target range minimum. Defaults to 0
Target range maximum. Defaults to 1
Logical: If TRUE: if x is matrix, drange each column separately
x
drange
# NOT RUN { x <- runif(20, -10, 10) x <- drange(x) # }
Run the code above in your browser using DataLab