Description Usage Arguments Details Value See Also Examples
View source: R/contactGroup_utils.R
Get the indices corresponding to a matrix band.
1 | getBandIdx(n, band.no)
|
n |
The number of rows/columns of a contact matrix |
band.no |
Integer specifying which matrix band. |
This function is used in subsetting contact matrices, primarily in getBandMatrix. However, users wishing to extract band matrices directly may find this useful
A matrix with 2 columns and as many rows as entries in the matrix band.
ContactGroup, getBandMatrix, band
1 2 | data(cgEx)
b2.idx <- getBandIdx(nrow(cgEx), 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.