Only in the special case of 3 traits with 1 always driving growth and another one only driving competition

create_trait_weights(R, A, H, n_traits = 4)

Arguments

R

an integer value giving the contribution of trait in growth

A

an integer value giving the contribution of trait in limiting similarity

H

an integer value giving the contribution of trait in hierarchical competition

n_traits

number of traits considered in table

Examples

create_trait_weights(50, 50, 0)
#>    trait growth_weight compet_weight hierarchy_weight
#> 1 trait1           0.5           0.0                0
#> 2 trait2           0.5           0.5                0
#> 3 trait3           0.0           0.5                0
#> 4 trait4           0.0           0.0                1