R/simulation.R

blender.reduce = function(landscape, richness){
	landscape[sample.int(nrow(landscape), richness), ]
}

blender.shuffle = function(landscape){
	t(apply(landscape, 1, sample))
}

Try the blender package in your browser

Any scripts or data that you put into this service are public.

blender documentation built on May 2, 2019, 1:06 p.m.