Is there an R function to find value below specific value. Example : Below is the input table. I need value in another column (COL3) below value " Age " that is seen in column 2 (COL2)
COl1 COl2
James Age
James 23
Andrew Age
Andrew 24
I need another column with
COl1 COl2 COl3
James Age 23
James 23 23
Andrew Age 24
Andrew 24 24