Vectorised conditional sign change
swapsign.Rd
Vectorised function that changes sign of elements of a numeric vector, dependent on values of a logical argument of the same length.
swapsign.Rd
Vectorised function that changes sign of elements of a numeric vector, dependent on values of a logical argument of the same length.