I have a list of allowed characters:
alphanumerics and certain symbols: + - $
How can I check if my string contains only these?
For example, Avb@
should returm false, but dn$
should be TRUE.
Preferably, I would like to use base R only.
I have found posts on the same question for other languages, but not in R.
Thank you!