powered by
triCoord gets pairwise combinations for 'n' elements; returns matrix with x & y coordinates to form all pairwise groups for 1:n elements
triCoord
triCoord(n, side = "upper")
(integer) number of elements for making all pair-wise combinations
(character) "upper" or "lower"
2-column matrix wiyh indexes for all pairwise combnations of 1:n
lower.tri or upper.tri, simpler version upperMaCoord
lower.tri
upper.tri
upperMaCoord
# NOT RUN { triCoord(4) # }
Run the code above in your browser using DataLab