sliceData {waspasR}R Documentation

sliceData

Description

Slice a matrix or data.frame in “all - in - one” format into dedicated vectors/matrices as data.frame objects

Usage

sliceData(waspas_db, output_obj)

Arguments

waspas_db

A matrix or data.frame in “all - in - one” format

output_obj

A flag to determine the vector or matrix (data.frame) to extract from the input matrix must be 'A' (Alternatives), 'C' (Criteria), 'F' (Flags), 'V' (Values) or 'W' (Weights)

Value

A data.frame one - dimensional (vector) or two - dimensional (matrix) with one of the Following objects: - if output_obj == "A": A vector of Alternatives - if output_obj == "C": A vector of Criteria - if output_obj == "F": A vector of Cost - Benefit Flags - if output_obj == "I": A vector containing the indicators in cells [1:3, 1] - if output_obj == "V": A matrix of values per Alternative x Criterion - if output_obj == "W": A vector of Weights


[Package waspasR version 0.1.5 Index]