single_pairs: Build individual pairs based on rownames

Description Usage Arguments Value

Description

A convenience function to quickly build a small matrix of pairs. Used when we want to predict on a validation set.

Usage

1
single_pairs(pair, mat)

Arguments

pair

A single pairname "A<B", where "A" and "B" are valid rownames.

mat

A matrix with rownames that contain all "A<B" pairs.

Value

A vector of 0's and 1's corresponding to the pair "A<B" we want


prpatil/tdsm documentation built on May 26, 2019, 10:32 a.m.