collapse_weights: collapse_weights

Description Usage Arguments Value

View source: R/aklimate-utils.R

Description

Combine entries in a vector that match a particular pattern

Usage

1

Arguments

patterns

vector of patterns to match

weights

named numeric vector that needs to be collapsed based on the patterns

Value

A named vector of scores for each pattern, sorted from largest to smallest.


VladoUzunangelov/aklimate documentation built on Aug. 17, 2020, 4:40 a.m.