R/duplicated2.R

Defines functions duplicated2

Documented in duplicated2

duplicated2 <- function(x, bothWays=TRUE, ...)
{
  if(!bothWays) {
    return(duplicated(x, ...))
  } else if(bothWays) {
    return((duplicated(x, ...) | duplicated(x, fromLast=TRUE, ...)))
  }
}

Try the gdata package in your browser

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

gdata documentation built on Oct. 17, 2023, 1:11 a.m.