For each row in a partition matrix, this function gets the column index for which the row is equal to one. That is, for row i, this function returns the index of the row entry that is equal to one.
A partition matrix
An integer vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.