agree_C {ludic} | R Documentation |
Fast C++ implementation of agreement vector for the element-wise comparison of 2 matrices
Description
agree_C_sparse
uses sparse matrices.
Usage
agree_C(mat_A, mat_B)
agree_C_sparse(mat_A, mat_B)
Arguments
mat_A |
a |
mat_B |
a |
Examples
mat1 <- matrix(round(rnorm(n=1000, sd=1.2)), ncol=10, nrow=100)
mat2 <- rbind(mat1[1:10, ],
matrix(round(rnorm(n=900, sd=1.2)), ncol=10, nrow=90)
)
rownames(mat1) <- paste0("A", 1:nrow(mat1))
rownames(mat1) <- paste0("B", 1:nrow(mat1))
mat1 <- 1*(mat1>1)
mat2 <- 1*(mat2>1)
[Package ludic version 0.2.0 Index]