Displaying 1 result from an estimated 1 matches for "p_q_r".
2001 Jan 17
3
Pattern Matching help
...ot;.", test.dat, value = TRUE, extended = FALSE)
[1] "a" "b.c" "d.e.f" "p_q,r"
And similarly, with gsub(), I get -
> gsub(",", "_", test.dat, extended = FALSE)
[1] "a" "b.c" "d.e.f" "p_q_r"
> gsub("_", ".", test.dat, extended = FALSE)
[1] "a" "b.c" "d.e.f" "p.q,r"
> #NOT WHAT I WANT
> gsub(".", "_", test.dat, extended = FALSE) #NOT WHAT I WANT
[1] "_" "___"...