.transform_to_matrix | R Documentation |
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.
.transform_to_matrix(input)
input |
A numeric vector or matrix to be transformed. |
Transform Input to Matrix
- If the input is neither a numeric vector nor a matrix, an error is raised.
A matrix representation of the input.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.