I need to remove numbers repeating continuously in he sequence.
a b
Kor 66.73 > 66.73 > 66.73 > 66.73 > 66.73 > 66.73 >
73.42 > 66.73 > 73.42 > 66.73 > 66.73 > 66.73 >
66.73 > 66.73 > 66.73
I need the out put like below
a b
Kor 66.73 > 66.73 > 66.73 > 66.73 > 66.73 > 66.73 >
73.42 > 66.73 > 73.42 > 66.73 > 66.73 > 66.73 >
66.73 > 66.73 > 66.73
I need the below output
c= 66.73 > 73.42 > 66.73 > 73.42 > 66.73
But I am getting error in the output
66.73 > 73.42 > 66.73.42 > 66.73
I used the below code
c$c <- gsub("\\b([\\w\\.]+)( > \\1\\b)+","\\1",c$b,perl = T)