View source: R/func__assignPairID.R
assignPairID | R Documentation |
This is a generic function that assigns an ID to each pair of object names. For example, a single ID is assigned to two rows in a data frame for associations between patterns (pat_1, pat_2) and (pat_2, pat_1).
assignPairID(lmms, from = 1, paired.rows = TRUE)
lmms |
A data frame whose first two columns (named y and x respectively) are used to assign pair IDs. |
from |
The initial pair ID. |
paired.rows: |
whether there are only two rows per pair of alleles, each in an inverse direction. Set paired.rows = FALSE to process allele pairs in the data frame lmms.ds[["dif"/"idd"]]. |
Yu Wan (wanyuac@126.com)
a0 <- assoc[["lmms.pat"]][["dif"]][["h1"]] a0 <- assignPairID(lmms = a0, from = 1, paired.rows = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.