order_draws {posterior} | R Documentation |
Order draws
objects
Description
Order draws
objects according to iteration and chain number. By default,
draws objects are ordered but subsetting or extracting parts of them may
leave them in an unordered state.
Usage
order_draws(x, ...)
## S3 method for class 'draws_matrix'
order_draws(x, ...)
## S3 method for class 'draws_array'
order_draws(x, ...)
## S3 method for class 'draws_df'
order_draws(x, ...)
## S3 method for class 'draws_list'
order_draws(x, ...)
## S3 method for class 'draws_rvars'
order_draws(x, ...)
## S3 method for class 'rvar'
order_draws(x, ...)
Arguments
x |
(draws) A |
... |
Arguments passed to individual methods (if applicable). |
Value
A draws
object of the same class as x
.
See Also
Examples
x <- as_draws_array(example_draws())
dimnames(x[10:5, 4:3, ])
dimnames(order_draws(x[10:5, 4:3, ]))
[Package posterior version 1.6.0 Index]