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 May 2, 2019, 5:49 p.m.