.transform_to_matrix {funMoDisco} | R Documentation |
Transform to Matrix
Description
This function transforms a numeric vector into a matrix. If the input is a single number, it creates a 1x1 matrix. If the input is a vector, it creates a 1xN matrix. If the input is already a matrix, it returns it unchanged.
Usage
.transform_to_matrix(input)
Arguments
input |
A numeric vector or matrix to be transformed. |
Details
Transform Input to Matrix
- If the input is neither a numeric vector nor a matrix, an error is raised.
Value
A matrix representation of the input.
[Package funMoDisco version 1.0.0 Index]