Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is.linkdat

Is an object a linkdat object?


Description

Functions for checking whether an object is a linkdat object, a singleton or a list of such.

Usage

is.linkdat(x)

is.singleton(x)

is.linkdat.list(x)

Arguments

x

Any R object.

Details

Note that the singleton class inherits from linkdat, so if x is a singleton, is.linkdat(x) returns TRUE.

Value

For is.linkdat: TRUE if x is a linkdat (or singleton) object, and FALSE otherwise.
For is.singleton: TRUE if x is a singleton object, and FALSE otherwise.
For is.linkdat.list: TRUE if x is a list of linkdat/singleton objects.

Author(s)

Magnus Dehli Vigeland

See Also

Examples

x1 = nuclearPed(1)
x2 = singleton(1)
stopifnot(is.linkdat(x1), !is.singleton(x1), 
          is.linkdat(x2), is.singleton(x2),
          is.linkdat.list(list(x1,x2)))

paramlink

Parametric Linkage and Other Pedigree Analysis in R

v1.1-2
GPL (>= 2)
Authors
Magnus Dehli Vigeland [aut, cre], Thore Egeland [ctb], Guro Doerum [ctb]
Initial release
2018-01-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.