powered by
Functions for checking whether an object is a linkdat object, a singleton or a list of such.
linkdat
singleton
is.linkdat(x)is.singleton(x)is.linkdat.list(x)
is.singleton(x)
is.linkdat.list(x)
For is.linkdat: TRUE if x is a linkdat (or singleton) object, and FALSE otherwise. For is.singleton: TRUE if x
is.linkdat
x
is.singleton
is a singleton object, and FALSE otherwise. For is.linkdat.list: TRUE if x is a list of linkdat/singleton objects.
is.linkdat.list
Any R object.
R
Note that the singleton class inherits from linkdat, so if x is a singleton, is.linkdat(x) returns TRUE.
is.linkdat(x)
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)))
Run the code above in your browser using DataLab