Removing curly brackets in R
gsub, r
Solution
Try this
gsub("\\{|\\}", "", "{abcd}")
[1] "abcd"
Or this
gsub("[{}]", "", "{abcd}")
Problem
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.