Row matrix

Share:

Usage

1
rMx(Input)

Arguments

Input

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function (Input) 
{
    if (is.vector(Input)) {
        Output <- t(as.matrix(Input))
    }
    if (!is.vector(Input)) {
        Output <- as.matrix(Input)
    }
    Output
  }