Learn R Programming

baker (version 1.0.4)

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

Description

convert one column data frame to a vector

Usage

as.matrix_or_vec(x)

Value

a vector

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.