lower_triangle_factors.Rd
Formed by unique(vetor)
lower_triangle_factors(a, VarNames = c("Var1", "Var2"))
a | vector |
---|---|
VarNames | character vector of length 2 |
data.frame with two columns named according to VarNames
Useful for creating heatmaps using only lower diagonal.
lower_triangle_factors(rep(1:3, 10))#> Var1 Var2 #> 1 2 1 #> 2 3 1 #> 3 3 2