Description Usage Arguments Value
View source: R/create.duplexes.R
Given a length (n) create a matrix of indexes as duplexes. This is useful when comparing neighbouring vector elements. For example for sequence [1,2,3,4] n=4 yielding a matrix where first row is [1,2], second row is [2,3], third row is [3,4].
1 |
n |
Numeric of sequence of indexes length |
Matrix of duplexes where pairs occupy rows
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.