swapComponents: Swaps the order of SimComponents in the solution

View source: R/solution_modifications.R

swapComponentsR Documentation

Swaps the order of SimComponents in the solution

Description

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.

Usage

swapComponents(sol, order)

Arguments

sol

solution object

order

a vector of component positions

Value

modified solution object


simplaceUtil documentation built on Aug. 6, 2024, 3:01 p.m.