R/getAniSuper.R

"getAniSuper" <- function(A, ani) {
  A_p <- A
  if (length(ani$super) > 0) {
    for (i in 1:length(ani$super)) {
      A_p <- cbind(A_p, rowSums(A[, ani$super[[i]]]))
    }
  }
  A_p
}

Try the TIMP package in your browser

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

TIMP documentation built on Dec. 28, 2022, 3:06 a.m.