I would like to exclude all duplicated rows. However, it has to be true just when they are subsequent rows. Follows a representative example:
My input df:
    df <- "NAME   VALUE 
    Prb1  0.05
    Prb2  0.05
    Prb3  0.05
    Prb4  0.06
    Prb5  0.06
    Prb6  0.01
    Prb7  0.10
    Prb8  0.05"
df <- read.table(text=df, header=T)
My expected outdf:
outdf <- "NAME   VALUE 
Prb1  0.05
Prb4  0.06
Prb6  0.01
Prb7  0.10
Prb8  0.05"
outdf <- read.table(text=df, header=T)
 
     
     
     
     
     
    