int2binState: Convert integer to binary state vector with node names. '

Description Usage Arguments Value See Also Examples

View source: R/helperGriffin.R

Description

Convert integer to binary state vector with node names. '

Usage

1
int2binState(x, node.names)

Arguments

x

input integer representing the state

node.names

network node names

Value

Numeric binary vector of the same length as the number of nodes. Each position corresponds to a node of the network. The values of each element are 0 or 1. The name of each element corresponds to the name of the node in that position in the network.

See Also

intToBits which this function wraps

Examples

1
2
data(cellcycle)
int2binState(162,cellcycle$genes)

mar-esther23/rgriffin documentation built on May 29, 2021, 10:03 p.m.