R/totvar.R

Defines functions totvar

Documented in totvar

totvar <- function(x, a = 0) {
  y <- Compositional::alfa(x, a, h = FALSE)$aff
  s <- Rfast::colVars(y)
  sum(s)
}

Try the Compositional package in your browser

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

Compositional documentation built on Oct. 9, 2024, 5:10 p.m.