Generate multi-dimensional grid points

mdgp_generate(parts = 2, richness = 2)

Arguments

parts

integer indicating the number of partitions (precision of class-label names)

richness

the number of classes (categories in categorical data)

Value

A data frame with all possible combinations of percentages (rows) for the requested number of partitions and richness (number of columns = richness).

Examples

mdgp_generate(parts=4,richness=3)
#> [1] "number of grid points: 15"
#>     V1  V2  V3
#> 1  100   0   0
#> 2   75  25   0
#> 3   50  50   0
#> 4   25  75   0
#> 5    0 100   0
#> 6   75   0  25
#> 7   50  25  25
#> 8   25  50  25
#> 9    0  75  25
#> 10  50   0  50
#> 11  25  25  50
#> 12   0  50  50
#> 13  25   0  75
#> 14   0  25  75
#> 15   0   0 100