Description Usage Arguments Value See Also Examples
This function swaps the values in an integer matrix column-wise defined
by the index
matrix. This function is used mainly for the
swapElements()
-method of MCMC samples to swap the indicator values.
1 | swapInteger_cc(values, index)
|
values |
An integer matrix containing the values to swap. |
index |
An integer matrix containing the indices by which values should be swapped. |
An integer matrix containing the swapped values.
swap_cc()
for the equivalent function for numeric values
swap_3d_cc()
for the equivalent function for three-dimensional arrays
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.