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)
}
sinnweja/rpleio documentation built on Dec. 10, 2023, 10:13 p.m.