i.e.. I'm doing this:
ses <- function(x, y) { out <- diffobj::ses(x, y, max.diffs = 100) out <- rematch2::re_match(out, paste0( "(?:(?<x1>\\d+),)?(?<x2>\\d+)", "(?<t>[acd])", "(?:(?<y1>\\d+),)?(?<y2>\\d+)" ))[1:5] out$x1 <- ifelse(out$x1 == "", out$x2, out$x1) out$y1 <- ifelse(out$y1 == "", out$y2, out$y1) out$x1 <- as.integer(out$x1) out$x2 <- as.integer(out$x2) out$y1 <- as.integer(out$y1) out$y2 <- as.integer(out$y2) out }
but I'm sure you could compute that more efficiently at a lower level.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4