multiMismatch: Find fewest mismatches for multiple patterns

Description Usage Arguments Value Author(s)

View source: R/leven.R

Description

Find fewest mismatches (and position if desired) between pattern and string without allowing gaps. Could be programmed better but quick enough for now

Usage

1
multiMismatch(patterns, subject, drop = TRUE, ...)

Arguments

patterns

A vector of string patterns to search for in subject

subject

A single subject string to search in

drop

If TRUE return only return the first best match

...

Additional arguments for bestMismatch

Value

Three column matrix with columns minMismatch, position, pattern number

Author(s)

Scott Sherrill-Mix [email protected]


sherrillmix/levenR documentation built on May 26, 2017, 8:08 a.m.