#example 1
x=matrix(c(3,5,5,2,1,2,6,8,5,1),2,5)
x
alltools(x,20)
#Some examples expressed by relative abundance:
#example 2
x=matrix(c(0.3,0.5,0.1,0.05,0.05,0.25,0.25,0.25,0.25,0,0.35,0.3,0.35,0,0),3,5)
x
alltools(x,20)
#example 3
x=matrix(runif(1000),10,100)
#let's consider some missing species
x[1,1:20]=0
x[2,1:40]=0
x[3,1:60]=0
x[4,1:19]=0
x
alltools(x,20)
#example 4
x=matrix(runif(100),20,5)
x[1,1:2]=0
x[2,1:3]=0
x
alltools(x,20)
#example 5
a=c(0.35,0.35,0.27,0.01,0.02)
b=c(0.54,0.20,0.17,0.06,0.03)
c=c(0.35,0.35,0.30,0,0)
d=c(0.51,0.31,0.07,0.10,0.01)
e=c(0.40,0.20,0.10,0.30,0)
x=matrix(rbind(a,b,c,d,e),5,5)
x
alltools(x,20)
Run the code above in your browser using DataLab