modelValuesConf: Create the confs for a custom NIMBLE modelValues object

View source: R/types_modelValues.R

modelValuesConfR Documentation

Create the confs for a custom NIMBLE modelValues object

Description

Builds an R-based modelValues conf object

Usage

modelValuesConf(
  symTab,
  className,
  vars,
  types,
  sizes,
  modelDef = NA,
  where = globalenv()
)

Arguments

symTab

For internal use only

className

For internal use only

vars

A vector of character strings naming each variable in the modelValues object

types

A vector of character strings describing the type of data for the modelValues object. Options include ‘double’ (for real-valued variables) and ‘int’.

sizes

A list in which the named items of the list match the var arguments and each item is a numeric vector of the dimensions

modelDef

For internal use only

where

For internal use only

Details

See the User Manual or help(modelValuesBaseClass) and help(modelValues) for information

Author(s)

Clifford Anderson-Bergman

Examples

#Custom modelValues object:
mvConf <- modelValuesConf(vars = c('x', 'y'), 
				types = c('double', 'int'), 
			sizes = list(x = 3, y = c(2,2)))
custom_mv <- modelValues(mvConf, m = 2)
custom_mv['y',]

nimble documentation built on July 9, 2023, 5:24 p.m.