R/duplicatedxy.R

Defines functions duplicatedxy

Documented in duplicatedxy

duplicatedxy <- function(x,y) {
    if(is.list(x)) {
        if(all(!is.na(match(c('x','y'),names(x))))) {
            return(duplicated(as.data.frame(x)))
        }
        stop("Argument \"x\" is a list but lacks x and/or y components.\n")
    }
    duplicated(data.frame(x=x,y=y))
}

Try the deldir package in your browser

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

deldir documentation built on May 29, 2024, 7:58 a.m.