Learn R Programming

nimble (version 1.2.1)

Rmatrix2mvOneVar: 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.