v2matrix: Convert a vector to a matrix

View source: R/main.R

v2matrixR Documentation

Convert a vector to a matrix

Description

Convert a vector to a matrix

Usage

v2matrix(x, ncol = 2, byrow = TRUE)

Arguments

x

vector

ncol

number of columns

byrow

logical. convert by row

Value

a matrix

Examples

v2matrix(c(1,2,3,4))

arrowheadr documentation built on June 22, 2024, 9:38 a.m.