balance.RdSometimes a hyper2 object is unbalanced in the sense that its
powers do not sum to zero. This is rectified by balance(), which
modifies the power of the bracket corresponding to the sum of all pnames
accordingly.
balance(H)This is just a convenience function, all it does is
(the first line ensures that H[pnames(H)] is over-written
correctly by the second). Package vignette zeropower discusses
the zero power sum condition.
Returns a balanced hyper2 object