vec2mat: Convert vector to matrix

View source: R/main.R

vec2matR Documentation

Convert vector to matrix

Description

Given two input vectors, expands these vectors into matrices based on the dimensions of the other vector. Returns either the matrix in x, or the matrix in y.

Usage

vec2mat(x, y, dim)

Arguments

x, y

two vectors of any type.

dim

which dimension of the output matrix to return.


bobverity/bobfunctions2 documentation built on July 4, 2023, 8:55 p.m.