R/com.feature.R

Defines functions com.feature

# ... stand for different atomic vectors
com.feature <- function(..., method = 'merge'){
  switch(method,
    'merge' = unique(c(...)),  # input should be a vector.
    'overlap' = Reduce(intersect, ...)
  )
}
bioinformatist/CrossICC documentation built on Feb. 3, 2022, 8:58 a.m.