Learn R Programming

snpEnrichment (version 1.7.0)

is.enrichment: Is an Enrichment object

Description

'is.enrichment' returns 'TRUE' if 'x' is an Enrichment object and 'FALSE' otherwise.

Usage

is.enrichment(object)

Arguments

object
[ANY]: object to be tested.

See Also

Overview : snpEnrichment-package Classes : Enrichment, Chromosome, EnrichSNP Methods : plot, reSample, getEnrichSNP, excludeSNP, compareEnrichment, enrichment, is.enrichment, chromosome, is.chromosome Functions : initFiles, writeLD, readEnrichment

Examples

Run this code
a <- enrichment()
c <- enrichment()
is.enrichment(list())                # FALSE
is.enrichment(1)                     # FALSE
is.enrichment(a)                     # TRUE
is.enrichment(c(a, c))               # TRUE TRUE
is.enrichment(list(a, b = "char"))   # TRUE FALSE
is.enrichment(c(a, b = list(12, c))) # TRUE FALSE TRUE

Run the code above in your browser using DataLab