dot-StatusToMatrix: Status vector to matrix

.StatusToMatrixR Documentation

Status vector to matrix

Description

Converts a vector to a matrix that can be analysed by the DoNotConflict() function family.

Usage

.StatusToMatrix(statusVector)

.StatusToArray(status)

Arguments

statusVector

Either (i) a named vector of integers, with names N, s, r1, r2, either d or d1 and d2, and optionally u; or (ii) a matrix whose named rows correspond to the same quantities.

status

A named three-dimensional array of integers, with slices named s, r1, r2, either d or d1 and d2, and either N or u.

Value

A matrix, containing the input columns plus ⁠2d⁠, representing either 2 * d or d1 + d2, and row names.

The row name means that column names are dropped in the output of DoNotConflict etc.

A three-dimensional array containing a slice labelled ⁠2d⁠, equivalent to either d + d or d1 + d2 as appropriate.

Author(s)

Martin R. Smith (martin.smith@durham.ac.uk)

Examples

data("sq_trees")

.StatusToArray(ManyToManyQuartetAgreement(sq_trees[5:7]))

ms609/SlowQuartet documentation built on Nov. 5, 2024, 8:48 a.m.