How to remove curly brackets in R? Eg. "{abcd}" to "abcd"
How can I use gsub function in R to do this? If any other method is available, please suggest.
Try this
gsub("\\{|\\}", "", "{abcd}")
[1] "abcd"
Or this
gsub("[{}]", "", "{abcd}")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With