Nothing
#' @importFrom purrr map2
binCentrality <- function(mz,intensity,dp = 2){
intensity <- round(intensity)
mzs <- unlist(map2(mz,intensity,~{rep(.x,.y)}))
centrality <- 1 - abs(mean(mzs) - round(mzs,dp)[1])/(1*10^-dp/2)
return(centrality)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.