I´m an R beginner and I couldn't find anything that helped me.
I want to generate random matrices, that differ in size. i wanted to use a for-loop and the genweb
function, but instead of many matrices it gives me back a vector.
library(bipartite)
zeroo <-matrix()
for(i in 10:50){
zeroo[i]<-genweb(10, i, dens=2)
}
Your
for
loop can be changed