I have data frame with two column say "a" and "b" now I want to create another column "c" which will take value 1 if the following condition satisfied:
a>x and within this subset b>y. x and y are arbitrary constant. The condition is somewhat nested. so if a>x returns 25 observation then b>y will search within that 25 observation NOT within entire data frame.