promote
function promotes a vector argument to a single-column or single-row matrix. Matrix arguments are returned unmodified.promote(x, byrow = FALSE)
TRUE
, a vector will be promoted to a single-row matrix; otherwise a single-column matrix will result.x
argument.J.D. Clayden, S. Muñoz Maniega, A.J. Storkey, M.D. King, M.E. Bastin & C.A. Clark (2011). TractoR: Magnetic resonance imaging and tractography with R. Journal of Statistical Software 44(8):1-18.
matrix