R/in_.R

Defines functions in_

Documented in in_

#' Intersects x and y, but keeps names from x
#'
#' @param x vector 1
#' @param y vector 2
#'
#' @return
#' @export
#'
#'
in_ <- function(x, y) {
  
  return(x[x %in% y])
  
}
nicohuttmann/pOmics documentation built on Sept. 21, 2022, 9:28 a.m.