R/subset.multicut.R

Defines functions subset.multicut

Documented in subset.multicut

subset.multicut <-
function(x, subset=NULL, ...)
{
    if (is.null(subset))
        return(x)
    if (any(is.na(subset)))
        stop("subset should not contain NA")
    out <- x
    out$species <- x$species[subset]
    if (length(out$species) < 1L)
        stop("no species left in subset")
    out$Y <- x$Y[,subset,drop=FALSE]
    out
}
psolymos/opticut documentation built on April 29, 2018, 10:17 a.m.