resize | R Documentation |
Adds or removes rows to a modelValues object. If rows are added to a modelValues object, the default values are NA
. Works in both R and NIMBLE.
resize(container, k)
container |
modelValues object |
k |
number of rows that modelValues is set to |
See the User Manual or help(modelValuesBaseClass)
for infomation about modelValues objects
Clifford Anderson-Bergman
mvConf <- modelValuesConf(vars = c('a', 'b'),
types = c('double', 'double'),
sizes = list(a = 1, b = c(2,2) ) )
mv <- modelValues(mvConf)
as.matrix(mv)
resize(mv, 3)
as.matrix(mv)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.