Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roundfixS #8

Open
ggrothendieck opened this issue Jul 20, 2024 · 0 comments
Open

roundfixS #8

ggrothendieck opened this issue Jul 20, 2024 · 0 comments

Comments

@ggrothendieck
Copy link

ggrothendieck commented Jul 20, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant