R/entropy.R

Defines functions entropy.calculator

# this function calculates entropy of cohort distributions

entropy.calculator <- function(cohorts){
  x = entropy(table(cohorts),unit = "log2")
  return(x)
}
chenhong-dkfz/GenomeTornadoPlot documentation built on Jan. 2, 2022, 1:23 a.m.