same_nrow: Same Number of Rows / Columns

Description Usage Arguments See Also Examples

Description

same_nrow() tests if two matrices have same number of rows
different_nrow() tests if two matrices have different number of rows
same_ncol() tests if two matrices have same number of columns
different_ncol() tests if two matrices have different number of columns

Usage

1
  same_nrow(x, y)

Arguments

x

a matrix

y

a matrix

See Also

same_dim

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
a = matrix(1:15, 5, 3)

same_nrow(a, a) # TRUE
same_nrow(a, t(a)) # FALSE
same_ncol(a, a) # TRUE
same_ncol(a, t(a)) # FALSE

different_nrow(a, a) # FALSE
different_nrow(a, t(a)) # TRUE
different_ncol(a, a) # FALSE
different_ncol(a, t(a)) # TRUE

tester documentation built on May 2, 2019, 1:09 p.m.