Pull out the elements with index values in obs.
auto v = RVector([1.1, 2.2, 3.3, 4.4, 5.5]); RVector v2 = v[[0, 2, 4]]; // holds [1.1, 3.3, 5.5]
See Implementation
Pull out the elements with index values in obs.