Extract from Scoring matrix
Vectorized function to efficiently extract elements from scoring matrix of type data.frame
extractFromScoringMatrix(ScoringFrame, grainType1, grainType2)
ScoringFrame
: Scoring matrix of type data.frame (needs to be of symmetric, matrix like format)grainType1
: factor vector of grain types contained in ScoringFramegrainType2
: same as grainType1
numeric vector of length grainType1
with the elements of ScoringFrame
that are defined by grainType1
and grainType2
fherla