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

aaply permutes indices #294

Open
ggrothendieck opened this issue May 1, 2019 · 0 comments
Open

aaply permutes indices #294

ggrothendieck opened this issue May 1, 2019 · 0 comments

Comments

@ggrothendieck
Copy link

ggrothendieck commented May 1, 2019

I had expected this to give a back but it permutes the dimensions:

a <- array(1:24, 2:4)
aa <- aaply(a, c(1, 3), c)
dim(aa)
## [1] 2 4 3

If this is correct maybe it should not be called idempotent.

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