| extract_draw | R Documentation |
Extract a single draw from x.
If a value is supplied for i,
extract the ith draw; otherwise
extract a random draw.
extract_draw(x, i = NULL)
x |
An rvec. |
i |
Index for the draw
to be extracted. A number between
|
A vector, with type
double, if x has class "rvec_dbl",
integer, if x has class "rvec_int",
character, if x has class "rvec_chr",
logical, if x has class "rvec_lgl".
n_draw() Number of draws
x <- rvec(matrix(1:50, ncol = 5))
extract_draw(x, i = 1)
extract_draw(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.