Make the habitat membership matrix, calN

make_calN(nPatches, membership)

Arguments

nPatches

is the number of patches

membership

is a vector describing the patch where each habitat is found

Value

a matrix of dimensions nPatches by nHabitats