Gower 1.0.2 R Package Reference Manual

R package reference manual for gower 1.0.2, a C-based implementation of Gower's distance and similarity coefficient.


Gower 1.0.2 R Package Reference Manual - cover page
Brand
Gower
Category
Other software
Document type
Other
Language
English
Pages
6
File format
PDF
File size
102 KB
Published
30 November, 2026
Updated
30 November, 2026
MD5 checksum
11ABF3D6D83A25D3AA31ADBCD4FC8675

About this manual

The gower package (version 1.0.2) provides a C-based implementation of Gower's distance (or similarity) coefficient between records, with core algorithms executed in parallel on systems supporting OpenMP. It is maintained by Mark van der Loo and distributed through CRAN.

The manual documents two functions: gower_dist, which computes Gower's distance pairwise between records in two data sets, and gower_topn, which finds the top-n matches in y for each record in x. Both accept optional column-pairing arguments, weights, an epsilon threshold, case handling and a thread count for parallelization.

What's inside

  • gower-package
  • gower_dist
  • gower_topn

Specifications

Version1.0.2
LicenseGPL-3
ImplementationC-based
ParallelizationOpenMP
MaintainerMark van der Loo

Frequently asked questions

What does the gower package compute?

It computes Gower's distance (or similarity) coefficient between records, and can also find the top-n matches between records.

How is the distance returned by gower_dist related to the similarity measure?

Gower (1971) originally defined a similarity measure with values from 0 (completely dissimilar) to 1 (completely similar); the distance returned here equals 1 minus s.

How many threads does gower_dist use by default?

For a dual-core machine, 2 threads are used; for any other machine, n-1 cores are used so the machine does not freeze during a big computation.

How can you specify which columns of x are compared with which columns of y?

You can give no specification and use columns with matching names, use only the pair_y argument, or explicitly specify the columns to be matched using pair_x and pair_y.

Download PDF (102 KB)