View source: R/df_to_stanarray.R
df_to_stanarray | R Documentation |
Converts a data frame to the output structure of extract
df_to_stanarray(df)
df |
data frame with the column names 'parameters', 'iterations' and 'chains' |
An array from df with the dimensions [iteration, chain, parameters]
df <- data.frame( parameters = c('mu', 'mu'), iterations = c(0.345, 0.263), chains = c(1, 2), stringsAsFactors = FALSE ) df_to_stanarray(df)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.