str_dist: Distance between two strings

Description Usage Arguments Details Value See Also Examples

Description

Calculates the distance between two strings

Usage

1

Arguments

x

a character vector with two strings

Details

This functions is used to find how much two file names differs from each other

Value

a vector with string distances of size max(length(a),length(b))

See Also

stringdist::stringdist()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
if(interactive()){
 x <- c("AB", "AA")
 str_dist(x)
 y <- c("AB", "AB")
 str_dist(x)
 z <- c("AB", "BA")
 str_dist(z)
 zz <- c("AA", "AB", "BS")
 str_dist(zz)
 }

## End(Not run)

lhmet/rinmetxls documentation built on May 28, 2019, 11:33 a.m.