R/utils.R

Defines functions above min_max pn

pn <- function(x, y) {
    m <- prettyNum(x, big.mark = ",", scientific = FALSE)
    paste0(paste(rep(" ", y - nchar(m)), collapse = ""), m)
}


# min max scaling function
min_max <- function(x) (x - min(x, na.rm = TRUE))/(max(x, na.rm = TRUE) - min(x, na.rm = TRUE))


above <- function(x, threshhold) which(x >= threshhold)
trinker/hclustext documentation built on May 27, 2017, 1:47 p.m.