powered by
Create a nimbleType object, with information on the name, type, and dimension of an object to be placed in a nimbleList.
nimbleList
The name of the object, given as a character string.
The type of the object, given as a character string.
The dimension of the object, given as an integer. This can be left blank if the object is a nimbleList.
NIMBLE development team
This function creates nimbleType objects, which can be used to define the elements of a nimbleList.
nimbleType
The type argument can be chosen from among character, double, integer, and logical, or can be the name of a previously created nimbleList definition.
type
character
double
integer
logical
nimbleList definition
See the NIMBLE User Manual for additional examples.
nimbleTypeList <- list() nimbleTypeList[[1]] <- nimbleType(name = 'x', type = 'integer', dim = 0) nimbleTypeList[[2]] <- nimbleType(name = 'Y', type = 'double', dim = 2)
Run the code above in your browser using DataLab