map_by_adist: Map two character vectors by approximate string distances

View source: R/map_by_adist.R

map_by_adistR Documentation

Map two character vectors by approximate string distances

Description

Map two character vectors by generalized Levenshtein (edit) distance i.e. approximate string distances.

Usage

map_by_adist(x, y, ignore.case = TRUE, max.norm.dist = 0.2)

Arguments

x

a character vector.

y

a character vector.

ignore.case

a logical. If TRUE, case is ignored for computing the distances.

max.norm.dist

maximal normalized distance between 0 and 1.

Value

Two-column Data frame of which each row is the mapped elements in x and y.


jdreyf/jdcbioinfo documentation built on April 15, 2024, 6:37 p.m.