is.valid.parental: Check validity.

Description Usage Arguments Value See Also Examples

View source: R/class.R

Description

Checks whether the supplied parental is valid. Tests that the parents are sorted correctly, are of storage.mode() == "integer"

Usage

1
2
  ## S3 method for class 'parental'
 is.valid(x)

Arguments

x

A object of class parental

Value

A logical of length 1 indicating whether x is a valid parental object

See Also

is.valid.bn

Examples

1
2
x <- parental(c(), c(1), c(1, 2, 4), c(3))
is.valid(x)

rjbgoudie/parental documentation built on May 27, 2019, 9:11 a.m.