R: Set values of one variable of a modelValues object from an R...

Rmatrix2mvOneVar {nimble} | R Documentation

## Set values of one variable of a modelValues object from an R matrix

### Description

Normally a modelValues object is accessed one "row" at a time. This function allows all rows for one variable to set from a matrix with one dimension more than the variable to be set.

### Usage

    Rmatrix2mvOneVar(mat, mv, varName, k)

### Arguments

`mat` | Input matrix
`mv` | modelValues object to be modified.
`varName` | Character string giving the name of the variable on `mv` to be set
`k` | Number of rows to use

### Details

This function may be deprecated in the future when a more natural system for interacting with modelValues objects is developed.

[Package nimble version 0.10.0 Index]