cclFun | R Documentation |
This routine identifies disjunct patches within a distribution matrix.
cclFun(mat)
mat |
Matrix with 0 as background value and positive values as occurrences to check patches for. |
This routine identifies disjunct patches of positive values within a matrix containing zeros as background values.
This function returns a matrix with zero as background value and positive values numbering and representing the disjunct patches.
Maximilian Lange
## example data
tmat = { matrix(c( 0,0,0,1,0,0,1,1,0,1,
0,0,1,0,1,0,0,0,0,0,
0,1,NA,1,0,1,0,0,0,1,
1,0,1,1,1,0,1,0,0,1,
0,1,0,1,0,1,0,0,0,1,
0,0,1,0,1,0,0,1,1,0,
1,0,0,1,0,0,1,0,0,1,
0,1,0,0,0,1,0,0,0,1,
0,0,1,1,1,0,0,0,0,1,
1,1,1,0,0,0,0,0,0,1),
nr=10,byrow=TRUE) }
ccl.mat <- cclFun(tmat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.