R/show-methods.R

setMethod("show", "DKSPredicted", 
    function(object) {
    pred <- object
    tab <- cbind(pred@samples, as.vector(pred@predictedClass), 
        round(as.vector(pred@predictedScore), 3))
    colnames(tab) <- c("sample", "predicted class", "prediction score")
    rownames(tab) <- 1:nrow(tab)
    tab <- as.data.frame(tab)
    print(tab)  
})

Try the dualKS package in your browser

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

dualKS documentation built on Nov. 8, 2020, 8:30 p.m.