Tag: lookup value from previous or next row in R