R/makeComp.R

Defines functions makeComp

Documented in makeComp

#' makeComp
#'
#' This function calculates the observed composition from raw counts
#'
#' @param W raw count matrix, with OTUs as columns
#'
#' @export
makeComp <- function(W) {
    return(W/rowSums(W))
}
bryandmartin/MicrobiomePack documentation built on May 25, 2019, 3:25 p.m.