as_stan_array | R Documentation |
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
as_stan_array(x)
x |
a numeric vector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.