| getbd5snp_buf | R Documentation |
Like getbd5snp but writes results into caller-supplied vectors
instead of allocating new ones. Intended for tight loops where thousands
of SNPs are read sequentially; pre-allocating the output vectors once
avoids repeated memory allocation.
getbd5snp_buf(bd5info, snp, dosage, p0, p1, p2)
bd5info |
Object returned by |
snp |
1-based integer index or character SNP ID. |
dosage |
Pre-allocated |
p0 |
Pre-allocated |
p1 |
Pre-allocated |
p2 |
Pre-allocated |
The four output vectors must not have more than one R binding at the call site (no extra variables pointing to the same object); R's copy-on-modify semantics would otherwise prevent in-place update.
NULL invisibly. dosage, p0, p1, and
p2 are updated in place.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.