Displaying 1 result from an estimated 1 matches for "a_bcd_ef".
2002 Jul 12
1
replacing text
>> Position and number of dots vary, and not follow specific pattern.
>> I wish to replace all the dots by "_" in vect, so that it
>> looks like
>> "a_bcd_ef","gh_i", etc..
>Try:
>gsub("\\.","_",vect)
>> vect
>[1] "a.bcd.ef" "gh.i" "foo.blah" "test.another"
>> gsub("\\.","_",vect)
>[1] "a_bcd_ef" "gh_i" "...