Learn R Programming

bio3d (version 2.4-4)

pairwise: Pair Indices

Description

A utility function to determine indices for pairwise comparisons.

Usage

pairwise(N)

Value

Returns a two column numeric matrix giving the indices for all pairs.

Arguments

N

a single numeric value representing the total number of things to undergo pairwise comparison.

Author

Barry Grant

References

Grant, B.J. et al. (2006) Bioinformatics 22, 2695--2696.

See Also

seqidentity

Examples

Run this code
  pairwise(3)
  pairwise(20)

Run the code above in your browser using DataLab