Description Usage Arguments Value See Also Examples
View source: R/dist_betw_matrices.R
Calculate the distances between the rows of one matrix and the rows of a second matrix.
1 2 3 4 5 6 7 | dist_betw_matrices(
x,
y,
distance = c("rmsd", "mad", "propdiff"),
align_cols = TRUE,
cores = 1
)
|
x |
A numeric matrix. |
y |
A second numeric matrix, with the same number of columns as |
distance |
Indicates whether to use Euclidean distance
( |
align_cols |
If TRUE, align the columns in the two matrices by the column names. |
cores |
Number of CPU cores to use, for parallel calculations.
(If |
If x
is m
by p
and y
is n
by p
, then the result
is an m
by n
matrix whose (i,j)th element is the distance
between the ith row of x
and the jth row of y
.
corr_betw_matrices()
, dist_betw_arrays()
1 2 3 4 5 6 7 8 9 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.