Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

same_dims

Check if Objects have Same Dimensions


Description

Wrapper to check if multiple objects all have the same dimensions

Usage

same_dims(...)

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

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)

neurobase

'Neuroconductor' Base Package with Helper Functions for 'nifti' Objects

v1.32.1
GPL-2
Authors
John Muschelli [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.