#' Get all spectrum data between a mass range
#'
#' @param ms the mass spectrum
#' @param lbl the lower bound limit
#' @param ubl the upper bound limit
#' @return the subrange
#' @export
ms_subrange <- function(ms,lbl,ubl){
subms <- ms[
ms[,1] <= ubl & ms[,1] > lbl
,]
#TODO: find out why we *didn't* need the following and what the effects
return(subms)
}
# todo: fix the following example so that it uses internal data...
##' @example
##' sub <- ms_subrange(spectrum,1589.5,1595.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.