PROJECT: Column-wise Mean Centered

Description Usage Arguments Value Examples

View source: R/PROJECT.R

Description

PROJECT returns a columnwise mean-centered matrix of the input matrix.

Usage

1
PROJECT(MM)

Arguments

MM

matrix

Value

An object of the same type of M, but with every element been column mean centered.

Examples

1
2
3
4
5
6
## The function is currently defined as
function (MM) 
{
    PMM <- MM - (matrix(1, n, 1) %*% apply(MM, 2, sum))/n
    return(PMM)
  }

SPA3G documentation built on May 2, 2019, 11:12 a.m.