x = c("a | b", "a b", "a, b", "a,b", "a.b")
str_replace_all(x, " | ", ", ")
the desired output is:
"a, b", "a b", "a, b", "a,b", "a.b"
but I'm not sure how to keep stringr (or gsub) from thinking its the "or" operator instead of an annoying character I'm trying to clean up from my dataset.