powered by
Function to check and modify the input class and type
check_matrix(mat, name)
data.frame, data.table, tibble. Object to be cast to matrix.
data.frame, data.table, tibble
character. Name of the object to be cast.
character
a 3d array if a 3d array is provided, else a matrix.