Displaying 1 result from an estimated 1 matches for "conformtoproto".
2024 Jan 29
1
strcapture performance when perl = TRUE
...out <- matrix(res, length(m))
if (ncol(out) != ntokens) {
stop("The number of captures in 'pattern' != 'length(proto)'")
}
} else {
out <- matrix(NA_character_, length(m), ntokens)
}
utils:::conformToProto(out,proto)
} else {
strcapture(pattern,x,proto,perl,useBytes)
}
}
Now comparing with strcapture we can expand the named capture example
from the grep documentation:
notables <- c(
" Ben Franklin and Jefferson Davis",
"\tMillard Fillmore",
"...