This function creates a matrix with dm rows and n columns, where n is the length of the input vector vc. Each row of the matrix is identical to vc.

VTM(vc, dm)

Arguments

vc

Numeric vector to be used as the template for each row of the matrix

dm

Integer specifying the number of rows in the output matrix

Value

An dm x n matrix with each row equal to vc

Examples

# Example usage of VTM function
vec <- c(1, 2, 3)
mat <- VTM(vec, 4)