upperMaCoord {wrMisc}R Documentation

(upper) pairwise x,y combinations

Description

upperMaCoord gets pairwise combinations for 'n' elements; return matrix with x & y coordinates to form all pairwise groups for n elements. But no distinction of 'upper' or 'lower' possible like in triCoord

Usage

upperMaCoord(n)

Arguments

n

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

Value

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

See Also

lower.tri, more evolved version triCoord

Examples

upperMaCoord(4)

[Package wrMisc version 1.15.1 Index]