View source: R/solution_modifications.R
swapComponents | R Documentation |
Rearranges the order of SimComponents. All components that are mentioned in
the vector order will be rearranged according to their position in the order
vector. All other components remain on the same position.
E. g. an order of c(5,6,1,3)
will put components on position 1,3,5,6 to
position 5, 6, 1, 3.
swapComponents(sol, order)
sol |
solution object |
order |
a vector of component positions |
modified solution object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.