You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes one needs to ensure all rows or all columns sum to integers. Of course one could use t(apply(X, 1, roundfixS)) but it would be nice if roundfixS handled matrices.
Possibly add an axis= or margin= argument or another possibility is to have rowRoundfixS and colRoundfixS functions analogous to rowSums and colSums or maybe other possibilities?
The text was updated successfully, but these errors were encountered:
Sometimes one needs to ensure all rows or all columns sum to integers. Of course one could use
t(apply(X, 1, roundfixS))
but it would be nice ifroundfixS
handled matrices.Possibly add an
axis=
ormargin=
argument or another possibility is to haverowRoundfixS
andcolRoundfixS
functions analogous torowSums
andcolSums
or maybe other possibilities?The text was updated successfully, but these errors were encountered: