Describe and extract the union of models contained in two snpmod objects

model.union(e1, e2, dataset.labels = c(1, 2), detail = FALSE)

Arguments

e1

snpmod object 1 or a character vectors of model strings extracted from a snpmod

e2

snpmod object 2 or a character vectors of model strings extracted from a snpmod

dataset.labels

labels used to refer to e1 and e2 in a detailed union of models. Ignored unless detail==TRUE.

detail

default FALSE. If TRUE, returns a more detailed data.frame showing union of models and from which dataset they came.

Value

If detail=FALSE, invisibly returns a character vector of the unique model strings found in e1 and e2. If detail=TRUE, invisibly returns a data.frame containing that vector and some information on which dataset each was found in.