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 Nov. 23, 2023, 9:09 a.m.