triCoord: Pairwise x,y combinations

View source: R/triCoord.R

triCoordR 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)

wrMisc documentation built on Nov. 17, 2023, 5:09 p.m.