v_to_m: Vector to matrix

Description Usage Arguments Value Examples

View source: R/utility.R

Description

Test whether an input is a vector, and if so, transform it into a matrix with ncol = 1.

Usage

1
v_to_m(v)

Arguments

v

a matrix or a vector

Value

a corresponding matrix

Examples

1
2
v_to_m(1:10)
v_to_m(matrix(1:10, ncol = 1))

koohyun-kwon/HTEBand documentation built on Dec. 21, 2021, 7:42 a.m.