convert2array: Converts the output of simulatorDT to a 3D array for other...

Description Usage Arguments Value Author(s) Examples

View source: R/convert2array.R

Description

As above.

Usage

1
convert2array(x, nRow, nCol, nBool)

Arguments

x

simResults as returned by simulatorDT

nRow

Number of rows of output.

nCol

Number of columns of output.

nBool

The third dimension, which corresponds to the number of simulation updates.

Value

This function returns a 3D array of the simulation results.

Author(s)

A. MacNamara

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
library(CellNOptR)
library(CNORdt)
data(CNOlistPB, package="CNORdt")
data(modelPB, package="CNORdt")

indexOrig <- indexFinder(CNOlistPB, modelPB, verbose=TRUE)
fields4Sim <- prep4sim(modelPB)
boolUpdates=10

simResults <- simulatorDT(
  CNOlist=CNOlistPB,
  model=modelPB,
  simList=fields4Sim,
  indices=indexOrig,
  boolUpdates=boolUpdates
)
simResults = convert2array(simResults, dim(CNOlistPB$valueSignals[[1]])[1],
length(modelPB$namesSpecies), boolUpdates)

CNORdt documentation built on Nov. 8, 2020, 11:11 p.m.