reg_matches {sdtm.oak} | R Documentation |
regmatches()
with NA
Description
reg_matches()
is a thin wrapper around regmatches()
that returns
NA
instead of character(0)
when matching fails.
Usage
reg_matches(x, m, invert = FALSE)
Arguments
x |
A character vector. |
m |
An object with match data. |
invert |
A logical scalar. If |
Value
A list of character vectors with the matched substrings, or NA
if
matching failed.
[Package sdtm.oak version 0.1.0 Index]