I have this data frame called df:
df <- structure(list(opty_id = c(123L, 147L, 165L, 198L, 203L, 209L, 219L, 271L, 284L),
amount_opty = c(855252.21, 590259.86, 742818.76, 742818.76, 211760, 149190.3, 118924.22, 414663.687, 403313.319 ),
percent = c(NA, 0.309841175, NA, 0, 0.714923732, 0.295474594, 0.202868953, NA, 0.027372467)),
.Names = c("opty_id", "amount_opty", "percent"),
class = "data.frame", row.names = c(NA, -9L))
The percent column is the percentage increase compared to the previous row.
I need to find out the pair of rows where percent is less than 10%.
The desired output would be: id 8 and id 9 (basically its resulted id and -1)