Skip to contents

[Stable]

This function converts various objects into a matrix format. By default, it calls as.matrix() to build a matrix.

Usage

fortify_matrix(data, ..., data_arg = caller_arg(data), call = NULL)

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.

Value

A matrix.