R/miss.R

#' returns values from vector that are not included in a second
#'
#' \code{miss(all,vals)}
#'
#' @param all is the complete vector of values
#' @param vals is those that you want to ignore
#'
#' @return output is all without the vals
#'
#' @examples
#' miss(1:10,3:7)
#'

miss=function(all,vals){all[match(all,vals,nomatch=FALSE)==0]}
helophilus/ColsTools documentation built on May 30, 2019, 4:03 p.m.