# Getting the Taxus baccata forests data set
data(taxus_bin)
# Creating some group partitions
groups1 <- rep(c(1, 2, 3), c(3, 11, 19))
set.seed(1)
groups2 <- sample(rep(c(1, 2, 3), c(3, 11, 19)))
# In this case, all relevés are unambiguously assigned to a group
internal_assignment(taxus_bin, groups1)
# In this other case, some relevés could be moved to a different group, as
# their assignment is ambiguous
internal_assignment(taxus_bin, groups2)
Run the code above in your browser using DataLab