R/clrmat.R

Defines functions clrmat

Documented in clrmat

clrmat <- function(X) {
  lX <- log(X)
  Xclr <- cen(t(cen(t(lX))))
  return(Xclr)
}

Try the ToolsForCoDa package in your browser

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

ToolsForCoDa documentation built on Sept. 20, 2021, 5:19 p.m.