normalizer: Changing the spread of values to be between two set values

Description Usage Arguments Value

View source: R/covid_status_functions.R

Description

For use in the covid_prob function to change the probabilities to be 0-1 rather than 0.5-1

Usage

1
normalizer(x, lower_bound, upper_bound, xmin, xmax)

Arguments

x

A number or vector of numbers

lower_bound

Desired lower_bound of values

upper_bound

Desired upper_bound of values

xmin

Expected minimum value of x

xmax

Expected maximum value of x

Value

A number or vector of numbers between the lower and upper bounds


Urban-Analytics/rampuaR documentation built on Nov. 27, 2020, 4:34 a.m.