normalize: Normalizes a vector of numbers to a range of zero to one.

Description Usage Arguments

View source: R/public_functions.R

Description

Normalizes a vector of numbers to a range of zero to one.

Usage

1
2
normalize(x, old_min = NULL, old_max = NULL, new_min = 0,
  new_max = 1)

Arguments

x

The vector to normalize

old_min

The minimum of the old range

old_max

The maximum of the old range

new_min

The minimum of the new range, defaults to 0

new_max

The maximum of the new range, defaults to 1


LucasBusta/phyloChemistry documentation built on Sept. 6, 2020, 11:36 p.m.