R/verbs.R
switch_sides.Rd
Exchanges the upper and lower triangles of a clutch.
switch_sides(x)
A clutch from breed().
clutch
breed()
A clutch with upper / lower exchanged and their *_name slots swapped.
upper
lower
*_name
u <- matrix(1:6, 2, 3); l <- matrix(7:12, 2, 3) breed(u, l, "obs", "pred") |> switch_sides()