Escape special characters in a string

I have a long vector of patterns to match using stringr functions.

I want to escape special characters like $ i.e. Budget $ to Budget \\$.

Is there a function or option to do this?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.