Minimal Length of Channel
Include statistics with the minimal length of the percolating channels:
- function length.path computes the lengths across the entire channel;
- you can then extract the minimal length from the last column of the matrix;
Example: Minimal Length of 1 Channel
r = length.path(m, id = some_id );
len = r[ , ncol(r)];
len = len[len > 0];
minLen = min(len);