str_escape | R Documentation |
This function escapes metacharacter, the characters that have special
meaning to the regular expression engine. In most cases you are better
off using fixed()
since it is faster, but str_escape()
is useful
if you are composing user provided strings into a pattern.
str_escape(string)
string |
Input vector. Either a character vector, or something coercible to one. |
A character vector the same length as string
.
str_detect(c("a", "."), ".")
str_detect(c("a", "."), str_escape("."))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.