orderinsensitivedists: Calculate the bag-of-characters similarity between strings.

Description Usage Arguments Value See Also Examples

View source: R/dists.R

Description

Calculate the bag-of-characters similarity between strings.

Usage

1
2
orderinsensitivedists(strings = NULL, split = NULL,
  segmentcounts = segment.counts(strings, split))

Arguments

strings

a vector or list of strings

split

boundary sequency at which to segment the strings (default splits the string into all its constituent characters)

segmentcounts

if custom segmentation is required, the pre-segmented strings can be passed as this argument (which is a list of lists)

Value

a distance matrix

See Also

dist

Examples

1
orderinsensitivedists(c("xxxx", "asdf", "asd", "dsa"))

kevinstadler/cultevo documentation built on June 29, 2017, 8 p.m.