Description Usage Arguments Value Examples
View source: R/similarity-scores.R
Computes the scaled difference between a vector of numeric variables and a
matrix of numeric variables. Should not usually be called by hand. Instead,
use the calcScores2
function.
1 | numDiffs2(vec, dat)
|
vec |
a numeric vector. Each value in the vector corresponds to a unique variable. |
dat |
a numeric matrix or data.frame of numeric variables. The number
of columns must be equal to the length of |
a matrix of the same dimensions as dat
. The ith entry in the
jth row corresponds to the absolute value of the difference between the jth
value of vec
and the jth value of the ith row of dat
.If
either the ith value of the jth row of dat
or the jth value of
vec
are missing, and NA will be returned.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.