as_stan_array: As array

View source: R/mcmc.R

as_stan_arrayR Documentation

As array

Description

Converts a numeric value of length 1 into a 1 dimension array. This is to avoid type errors that are thrown by stan when length 1 numeric vectors are provided by R for stan::vector inputs

Usage

as_stan_array(x)

Arguments

x

a numeric vector


rbmi documentation built on Nov. 24, 2023, 5:11 p.m.