View source: R/CrossExpression.R
get_cooccurrence_stats | R Documentation |
Calculates the number of elements common between columns of two matrices. This function performs a simple dot product when binarize = FALSE.
get_cooccurrence_stats(matrix1, matrix2, sparse = TRUE, binarize = TRUE)
matrix1 |
The first input matrix. |
matrix2 |
The second input matrix. |
sparse |
If TRUE, coerces matrices to sparse format for efficiency. |
binarize |
If TRUE, converts matrices to binary format to count the number of common elements. |
Returns a column by column matrix, where entries represent the number of common elements.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.