R/utils.R
as.matrix_or_vec.Rd
convert one column data frame to a vector
as.matrix_or_vec(x)
an one-column data.frame
a vector
JAGS cannot accept a data frame with one column; This function converts it to a vector, which JAGS will allow.