Learn R Programming

diffobj (version 0.1.2)

diff_myers_mba: Diff two character vectors

Description

Implementation of Myer's with linear space refinement originally implemented by Mike B. Allen as part of http://www.ioplex.com/~miallen/libmba/ version 0.9.1. This implementation uses the exact same algorithm, except that the C code is simplified by using fixed size arrays instead of variable ones for tracking the longest reaching paths and for recording the shortest edit scripts. Additionally all error handling and memory allocation calls have been moved to the internal R functions designed to handle those things.

Usage

diff_myers_mba(a, b, max.diffs = 0L)

Arguments

a
character
b
character
max.diffs
integer(1L) how many differences before giving up; set to zero to allow as many as there are

Value

list