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

Description Usage Arguments

Description

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

Usage

1
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


thebustalab/phylochemistry documentation built on Sept. 3, 2021, 5:06 a.m.