adrian0010 / Percolation

1 stars 0 forks source link

[Details] ID of Non-Percolating Channels #26

Closed discoleo closed 1 year ago

discoleo commented 1 year ago

ID of Non-Percolating Channels

On the Details page: if none of the channels are percolating, then use the ids of the non-percolating channels.

R Code: Server

### Details
idChannels = function(x) {
    id = which.percol(x)
    if(length(id) == 0) {
        id = unique(x[,1]);
        id = id[id > 0];
    }
    return(id);
}