R/utils.R

Defines functions scale_runif

# Scale to range ----------------------------------------------------------

scale_runif <- function(x, new_min, new_max) {
  (new_max - new_min) * (x - 1) + new_max
}
jolars/qualpalr documentation built on Sept. 23, 2023, 5:11 p.m.