R/cutoff_low.R

Defines functions cutoff_low

cutoff_low <-
function(low_map, para = 1, text = "low"){
    if(dim(low_map)[1] == 1){if(low_map == 0){
        print(paste(paste("There were not enough", text, sep = " "),
        "classified samples", sep=" "))}}
    else{s <- apply(low_map, 1, sum)
        low_map <- low_map[s > para,]}
    return(low_map);
}

Try the TTMap package in your browser

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

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