same_dim: Same Dimension

View source: R/same-dim.r

same_dimR Documentation

Same Dimension

Description

same_dim() tests if two matrices have same dimension
different_dim() tests if two matrices have different dimension

Usage

  same_dim(x, y)

Arguments

x

a matrix

y

a matrix

See Also

same_nrow

Examples

a = matrix(1:15, 5, 3)

same_dim(a, a) # TRUE
same_dim(a, t(a)) # FALSE

different_dim(a, a) # FALSE
different_dim(a, t(a)) # TRUE

tester documentation built on May 29, 2024, 7:33 a.m.