View source: R/combineSingleT.R
combineSingleT | R Documentation |
This function addresses the case when multiple alternatove ways exit to combine two elements.
combineSingleT
makes combinatory choices : if multiple TRUE
in given column of 'mat' make all multiple selections with always one TRUE
from each column
The resultant output contains index for first and second input columns elements to be combined.
combineSingleT(mat)
mat |
2-column matrix of logical values |
matrix with indexes of conbinations of TRUE
## Example: Fist column indicates which boys want to dance and second column
## which girls want to dance. So if several boys want to dance each of the girls
## will have the chance to dance with each of them.
matr <- matrix(c(TRUE,FALSE,TRUE,FALSE,TRUE,FALSE),ncol=2)
combineSingleT(matr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.