Compute Gower's distance, pairwise between records in two data sets
y. Records from the smallest data set are recycled over.
Number of threads to use for parallelization. By default,
for a dual-core machine, 2 threads are used. For any other machine
n-1 cores are used so your machine doesn't freeze during a big computation.
The maximum nr of threads are determined from
numeric vector of length
There are three ways to specify which columns of
x should be compared
with what columns of
y. The first option is do give no specification.
In that case columns with matching names will be used. The second option
is to use only the
pairs_y argument, specifying for each column in
in order, which column in
y must be used to pair it with (use
to skip a column in
x). The third option is to explicitly specify the
columns to be matched using
Gower (1971) originally defined a similarity measure (s, say) with values ranging from 0 (completely dissimilar) to 1 (completely similar). The distance returned here equals 1-s.
Gower, John C. "A general coefficient of similarity and some of its properties." Biometrics (1971): 857-871.
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.