nimble (version 0.7.0)

modelValuesConf: 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

Examples

Run this code
# NOT RUN {
#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',]
# }

Run the code above in your browser using DataLab