unglue_detect.Rd
Returns a logical indicating whether input strings were matched by one or more patterns
unglue_detect(
x,
patterns,
open = "{",
close = "}",
convert = FALSE,
multiple = NULL
)
a character vector to unglue.
a character vector or a list of character vectors, if a list,
items will be pasted using an empty separator (""
).
The opening delimiter.
The closing delimiter.
If TRUE
, will convert columns of output using
utils::type.convert()
with parameter as.is = TRUE
, alternatively, can
be a converting function, such as readr::type_convert
. Formula notation
is supported if the package rlang
is installed, so things like
convert = ~type_convert(., numerals = "warn.loss")
are possible.
The aggregation function to use if several subpatterns are
named the same, by default no function is used and subpatterns named the
same will match the same value. If a function is provided it will be fed
the conflicting values as separate arguments. Formula notation
is supported if the package rlang
is installed.
a vector of logical.