R/z[.snp.r

"[.snp"<-
function (x, ..., drop = FALSE)
{
    y <- NextMethod("[")
#    attr(y, "contrasts") <- attr(x, "contrasts")
#    attr(y, "levels") <- attr(x, "levels")
#    class(y) <- oldClass(x)
    attributes(y) <- attributes(x)
    if (drop)
        factor(y)
    else y
}
isglobal-brge/SNPassoc documentation built on May 15, 2023, 8:10 p.m.