check_equal_dim: Check vectors have equal dimension

Description Usage Arguments Value Examples

Description

Function to check that a vectors in a list are of the same length

Usage

1
check_equal_dim(list_of_vectors)

Arguments

list_of_vectors

list with elements that are vectors

Value

boolean value: TRUE if all vectors in list are the same length, FALSE otherwise

Examples

1
2
check_equal_dim(list(c(0,1,2), c(0,1))) # FALSE
check_equal_dim(list(c(0,1,2), c(0,1,2))) # TRUE

rchan26/mixGaussTempering documentation built on June 14, 2019, 3:26 p.m.