This function takes a data.frame, moves it to unit simplex representation and
then projects the points onto a lower representation space (using A
).
to_lower_simplex(df, A = NULL)
df | an n x p data.frame, all scalar columns |
---|---|
A | default is |
updated dat.frame (n x k), where k should be p-1, but that's assuming
A is made from simplex_project_mat
#> V1 V2 #> 1 0 0#> V1 V2 #> 1 1 0