Skip to content

Commit

Permalink
Rename shape_size2() to axis2()
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan committed Jun 27, 2019
1 parent db1c1e1 commit d379350
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/shape.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ shape_match <- function(type, x, y) {

shape_common <- function(x, y) {
shape <- n_dim2(shape(x), shape(y))
map2_int(shape$x, shape$y, shape_size2)
map2_int(shape$x, shape$y, axis2)
}

shape_size2 <- function(nx, ny) {
axis2 <- function(nx, ny) {
if (nx == ny) {
nx
} else if (nx == 1L) {
Expand Down

0 comments on commit d379350

Please sign in to comment.