#' Total Ion Count Normalisation.
#' @name TICnorm
#' @description Normalise FIE-HRMS spectra to their total ion count.
#' @param dat A data.frame.
#' @return A TIC normalised data.frame.
#' @author Jasen Finch
#' @export
TICnorm <- function(dat){
dat <- apply(dat,2,function(x,y){x/y},y=rowSums(dat))
return(dat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.