Description Usage Arguments Details Value Examples
Calculate the Hamming distance between all pairs of columns in a matrix. The Hamming distance is defined as the number of positions in two vectors at which the corresponding symbols or different. Here, the Hamming distance is applied to the presence/absence of each gene, whereby measurements that are missing or equal to zero are considered as zeroes and all other measurements are considered as ones.
1 | hamming(mat)
|
mat |
a matrix of data, with samples in rows and features in columns |
The matrix implementation used in dismay
was obtained from:
https://johanndejong.wordpress.com/2015/10/02/faster-hamming-distance-in-r-2/
the Hamming index between non-zero/missing values in each pair of columns
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.