enumerateParents: Enumerate all possible parents.

Description Usage Arguments Value

View source: R/space-bvs.R

Description

Enumerate all the combinations of possible parents, given a SET of possible parents. Optionally, restrcit the maximum number of parents. Optionally, require that a particular parent is always present.

Usage

1
2
  enumerateParents(potentialParents, maxNumberParents =
  length(potentialParents), required = integer(0))

Arguments

potentialParents

A numeric vector of possible parents. Note: at the moment, this should EXCLUDE any required parents.

maxNumberParents

The maximum number of parents of node response.

required

A numeric vector of required parents

Value

A list of possible parents sets, each of which will be a sorted numeric vector, stored as integers.


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