as.matrix_or_vec: convert one column data frame to a vector

View source: R/utils.R

as.matrix_or_vecR Documentation

convert one column data frame to a vector

Description

convert one column data frame to a vector

Usage

as.matrix_or_vec(x)

Arguments

x

an one-column data.frame

Details

JAGS cannot accept a data frame with one column; This function converts it to a vector, which JAGS will allow.

Value

a vector


zhenkewu/baker documentation built on March 17, 2022, 9:54 p.m.