extractFromScoringMatrix: Extract from Scoring matrix

View source: R/utils.R

extractFromScoringMatrixR Documentation

Extract from Scoring matrix

Description

Vectorized function to efficiently extract elements from scoring matrix of type data.frame

Usage

extractFromScoringMatrix(ScoringFrame, grainType1, grainType2)

Arguments

ScoringFrame

Scoring matrix of type data.frame (needs to be of symmetric, matrix like format)

grainType1

factor vector of grain types contained in ScoringFrame

grainType2

same as grainType1

Value

numeric vector of length grainType1 with the elements of ScoringFrame that are defined by grainType1 and grainType2

Author(s)

fherla


sarp.snowprofile.alignment documentation built on Sept. 11, 2024, 9:23 p.m.