normalize.matrix: Normalize the input matrix

Usage Arguments Examples

Usage

1

Arguments

x

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
##---- 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 (x) 
{
    x <- apply(x, 2, function(y) {
        y/sum(y)
    })
    return(x)
  }

MPBA/r-sparcc documentation built on May 8, 2019, 3:22 p.m.