R/simulation.R

Defines functions blender.shuffle blender.reduce

Documented in blender.reduce blender.shuffle

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 30, 2017, 4:10 a.m.