I found a solution that works
str = gsub("([\\])","", str)
More Related Contents:
- How to escape backslashes in R string
- Splitting a dataframe string column into multiple different columns [duplicate]
- dplyr: inner_join with a partial string match
- File path issues in R using Windows (“Hex digits in character string” error)
- gsub() in R is not replacing ‘.’ (dot)
- How to remove + (plus sign) from string in R?
- Removing duplicate combinations (irrespective of order)
- Painless way to install a new version of R?
- R – Finding closest neighboring point and number of neighbors within a given radius, coordinates lat-long
- Convert type of multiple columns of a dataframe at once
- How to Reverse a string in R
- How do I change the formatting of numbers on an axis with ggplot? [duplicate]
- Place a border around points
- Update subset of data.table based on join
- R – use rbind on multiple variables with similar names
- Find start and end positions/indices of runs/consecutive values
- Modifying fonts in ggplot2
- How to Convert data frame to spatial coordinates
- R: Assign variable labels of data frame columns
- spearman correlation by group in R
- Calculate cumulative average (mean)
- split character data into numbers and letters
- Using ifelse in R
- Put a break in the Y-Axis of a histogram
- Can rbind be parallelized in R?
- Run a custom function on a data frame in R, by group
- The perils of aligning plots in ggplot
- How to create a new variable in a data.frame based on a condition?
- Understanding element wise clearing of R’s workspace
- What does the %% operator mean in R? [closed]