check_matrix: Function to check and modify the input class and type

View source: R/check_matrix.R

check_matrixR Documentation

Function to check and modify the input class and type

Description

Function to check and modify the input class and type

Usage

check_matrix(mat, name)

Arguments

mat

data.frame, data.table, tibble. Object to be cast to matrix.

name

character. Name of the object to be cast.

Value

a 3d array if a 3d array is provided, else a matrix.


Dralliag/opera documentation built on Jan. 31, 2023, 1:08 p.m.