| ses {diffobj} | R Documentation |
Computes shortest edit script to convert a into b by removing
elements from a and adding elements from b. Intended primarily
for debugging or for other applications that understand that particular
format. See GNU diff docs
for how to interpret the symbols.
ses(a, b, max.diffs = gdo("max.diffs"), warn = gdo("warn"))
a |
character |
b |
character |
max.diffs |
integer(1L), number of differences after which we
abandon the |
warn |
TRUE (default) or FALSE whether to warn if we hit 'max.diffs'. |
ses will be much faster than any of the
diff* methods, particularly for large inputs with
limited numbers of differences.
NAs are treated as the string “NA”. Non-character inputs are coerced to character.
character
ses(letters[1:3], letters[2:4])