index_data_band: Prepares bands data between 0 and 1

Description Usage Arguments Value Author(s)

View source: R/04-band.R

Description

This returns a 0 to 1 banding based on user inputs of weights and indicator direction

Usage

1
index_data_band(values, worst_value = min(values), best_value = max(values))

Arguments

values

values to band

worst_value

value that will be zero. Everything 'lower' than this will also be given a score of zero.

best_value

value to be scaled to one. Everything 'higher' than this will also be given a score of one.

Value

Returns banded data.

Author(s)

David Hammond


david-hammond/tidyindexR documentation built on Sept. 14, 2020, 2:46 p.m.