-
Notifications
You must be signed in to change notification settings - Fork 21
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
No row/colSums for a DataFrame? #48
Comments
This was intentionally left out because those methods really only make sense on matrices. It's unfortunate that I guess |
That would make sense. I have some |
Looking at if (!is.array(x) || length(dn <- dim(x)) < 2L)
stop("'x' must be an array of at least two dimensions") and putting an |
I think it should coerce to an array though, not necessarily a matrix, since the object could have more than two dimensions. The data.frame case could also be removed if |
I'm a bit surprised we don't have
colSums
androwSums
methods forDataFrame
.This should be as simple as:
The text was updated successfully, but these errors were encountered: