Learn R Programming

waspasR (version 0.1.5)

normalize: normalize()

Description

Normalize the values of Alternatives X Criteria matrix according to a given Cost - Benefit vector of flags.

Usage

normalize(normalized_matrix, vec_cost_benefit)

Value

A data frame object that contains the input matrix values normalized

Arguments

normalized_matrix

A data set object with Alternatives X Criteria values to be normalized

vec_cost_benefit

A vector of flags that determines if the criterion is a Cost or Benefit. Must be same size of Criteria, must contains just strings initiated with B, b, C or c