Learn R Programming

snpEnrichment (version 1.7.0)

is.chromosome: Is an Chromosome object

Description

'is.chromosome' returns 'TRUE' if 'x' is an Chromosome object and 'FALSE' otherwise.

Usage

is.chromosome(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 <- chromosome()
c <- chromosome()
is.chromosome(list())                # FALSE
is.chromosome(1)                     # FALSE
is.chromosome(a)                     # TRUE
is.chromosome(c(a, c))               # TRUE TRUE
is.chromosome(list(a, b = "char"))   # TRUE FALSE
is.chromosome(c(a, b = list(12, c))) # TRUE FALSE TRUE

Run the code above in your browser using DataLab