same_dims: Check if Objects have Same Dimensions

Description Usage Arguments Value Examples

View source: R/same_dims.R

Description

Wrapper to check if multiple objects all have the same dimensions

Usage

1

Arguments

...

Arguments (matrices or arrays) where the dimension will be checked against the first object's dimension

Value

Logical indicating if all have the same dimensions or not

Examples

1
2
3
4
5
6
7
mat1 = matrix(1:9, ncol = 3)
mat2 = matrix(rnorm(9), ncol = 3)
mat3 = matrix(rnorm(16), ncol = 4)
mat4 = matrix(rnorm(9), ncol = 3)
same_dims(mat1, mat2)
same_dims(mat1, mat3)
same_dims(mat1, mat2, mat4)

neuroconductor-devel-releases/neurobase documentation built on May 6, 2020, 4:25 p.m.