make_mat: Make 2-D array (Matrix for JAGS)

View source: R/utils.R

make_matR Documentation

Make 2-D array (Matrix for JAGS)

Description

Make 2-D array (Matrix for JAGS)

Usage

make_mat(df.in, row = "site.ind", col = "year.ind", val, replace.na = FALSE)

Arguments

df.in

Data frame

row

Variable in df containing target row names

col

Variable in df containing target column names

val

Variable containing the target cell contents

replace.na

Whether to replace NA values with zero.


trashbirdecology/dubcorms documentation built on June 27, 2022, 2:07 a.m.