R/dropMatching.R

#' Droping/subseting matching values from vectors
#'
#' @param x vector
#' @param match values which we want to drop from vector

dropMatching <- function(x, match, inverse=F){
  x <- x[!x %in% match]
  if(inverse)
    x <- x[x %in% match]

  return(x)
}
elo2zero/oddsandsods documentation built on May 16, 2019, 3:04 a.m.