R/center.R

Defines functions center

## internal function for pleiotropy functions, center a quantitative variable
## Author: DJ Schaid
## Date: 7/27/2016

center <- function(y){
  mn <- apply(y, 2, mean)
  y.centered <- t(t(y) - mn)
}

Try the pleio package in your browser

Any scripts or data that you put into this service are public.

pleio documentation built on Dec. 7, 2018, 1:05 a.m.