triCoord {wrMisc}R Documentation

Pairwise x,y combinations

Description

triCoord gets pairwise combinations for 'n' elements; returns matrix with x & y coordinates to form all pairwise groups for 1:n elements

Usage

triCoord(n, side = "upper")

Arguments

n

(integer) number of elements for making all pair-wise combinations

side

(character) "upper" or "lower"

Value

2-column matrix wiyh indexes for all pairwise combnations of 1:n

See Also

lower.tri or upper.tri, simpler version upperMaCoord

Examples

triCoord(4)

[Package wrMisc version 1.15.0.3 Index]