unmap | R Documentation |
This function does the opposite to the map() function. It takes the class membership and unmap it to a matrix with entries that equal 1 if the component membership corresponded to that column. It will not drop empty column/class.
unmap(mapz, G)
mapz |
Vector of class membership |
G |
Number of component in assumed |
A matrix with the i,jth entry equals 1 when the ith observation belongs to the jth group.
unmap()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.