This function converts various objects into a matrix format. By default, it
calls as.matrix()
to build a matrix.
Arguments
- data
An object to be converted into a matrix.
- ...
Additional arguments passed to methods.
- data_arg
The argument name for
data
. Developers can use it to improve messages. Not used by the user.- call
The execution environment where
data
and other arguments for the method are collected, e.g.,caller_env()
. Developers can use it to improve messages. Not used by the user.