sim_func_mat: Compute a matrix of similarity measures between strings,...

Description Usage Arguments Value

View source: R/sim_func_mat.R

Description

Compute a matrix of similarity measures between strings, accounting for ambiguous characters. In situations where all combinations or permutations of a set of strings are to be compared, this implementation is more efficient than calling sim_func However, it may be less memory efficient for large inputs

Usage

1
sim_func_mat(s_1, s_2, method = "lv", q = 1, ...)

Arguments

s_1

A vector or matrix of characters representing one set of original strings

s_2

A vector or matrix of characters representing a second set of original strings for comparison. If missing, a lower triangular matrix comparing s_1 to itself will be returned.

method

A character input identifying the string similarity method to be used by stringsim from the 'stringdist' package

...

Other options to be passed to stringsim

Value

A matrix of similarities corresponding to the pairwise comparisons of elements of s_1 and s_2. Upper triangular when s_2 is missing.


OPTI-SURVEIL/chinsimi documentation built on Oct. 27, 2019, 7:05 p.m.