dot-transform_to_matrix: Transform to Matrix

.transform_to_matrixR 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.


funMoDisco documentation built on April 16, 2025, 1:10 a.m.