R/identicalScopes.R

Defines functions identicalScopes

Documented in identicalScopes

#' Check if two objects have the same BEID scope
#' 
#' @param x the object to test
#' @param y the object to test
#' 
#' @return A logical indicating if the 2 scopes are identical
#' 
#' @export
#' 
identicalScopes <- function(x, y){
   xs <- scope(x)
   ys <- scope(y)
   return(
      xs$be==ys$be &
      xs$source==ys$source &
      xs$organism==ys$organism
   )
}

Try the BED package in your browser

Any scripts or data that you put into this service are public.

BED documentation built on March 7, 2023, 6:54 p.m.