getbnl: Extract parts of a 'bn list'.

Description Usage Arguments Value See Also Examples

Description

Operator that acts on objects of class bn.list to extract parts of the list

Usage

1
2
  ## S3 method for class 'bn.list'
x[i]

Arguments

x

Object from which to extract element(s)

i

Indicies specifying elements to extract

Value

An object of class bn.list, consisting the parts of x indicated by i

See Also

bn.list

Examples

1
2
3
4
5
6
p1 <- bn(c(), c(1), c(1, 2, 4), c())
p2 <- bn(c(2), c(), c(1), c())
x <- bn.list(p1, p2)
x[1]
x[[1]]
x[2]

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