extract_draws | R Documentation |
Extract parameters' draws
extract_draws(obj, draws)
obj |
Array/Vector/Matrix of draws (cf. first dimension) or list of it. |
draws |
Vector of draws to extract. |
Dataframe with columns: Draw
, Index
, Value
and Parameter
.
x <- rnorm(1e3)
X <- matrix(x, ncol = 10)
a <- array(rnorm(80), dim = c(10, 2, 2, 2))
extract_draws(x, sample(1:length(x), 10))
extract_draws(X, sample(1:nrow(X), 10)) %>% head()
extract_draws(a, sample(1:10, 5)) %>% head()
extract_draws(list(x = x, X = X, a = a), 1:10) %>% head()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.