R/IsDup.R

Defines functions IsDup

IsDup <- function(x.list, y){
    if(!inherits(x.list, "list")) stop("Expecting a list")

    dup <- FALSE
    for(x in x.list){
        if(setequal(x, y)){
            dup <- TRUE
            break
        }
    }
    return(dup)
}

Try the ADPclust package in your browser

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

ADPclust documentation built on May 2, 2019, 9:23 a.m.