Skip to content

Commit

Permalink
fix problem with () in gsub
Browse files Browse the repository at this point in the history
  • Loading branch information
stivalaa committed Oct 28, 2022
1 parent 2ab6430 commit 31dd745
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,10 @@ for (colname in names(dat)) {
function(s) gsub(",", ".", s)))
g <- set.vertex.attribute(g, colname,
value = sapply(get.vertex.attribute(g, colname),
function(s) gsub("(", ".", s)))
function(s) gsub("(", ".", s, fixed = TRUE)))
g <- set.vertex.attribute(g, colname,
value = sapply(get.vertex.attribute(g, colname),
function(s) gsub(")", ".", s)))
function(s) gsub(")", ".", s, fixed = TRUE)))
}


Expand Down

0 comments on commit 31dd745

Please sign in to comment.