Skip to contents

Convert a Mapping to a criterion x candidate matrix

Usage

# S3 method for class 'Mapping'
as.matrix(x, value = c("strength", "value"), dimnames = c("id", "text"), ...)

Arguments

x

Mapping object.

value

Character {"strength", "value"}: Which column to fill cells with. "strength" is support in [0, 1] and is what visualizations should use; "value" is the scoring system's native scale, which for "ioc" includes negatives.

dimnames

Character {"id", "text"}: Whether to name rows and columns by identifier or by objective text.

...

Not used.

Value

Numeric matrix, criteria in rows and candidates in columns, NA where a pair failed to score.

Author

EDG