title: How to use cell reference in R
body: <p>I am trying to use a formula in current cell with reference to the cell above it in R. For example:</p>
  
  <pre><code>data$srno = data$srno[offset(-1,0)] + 1
  </code></pre>
  
  <p>Is there a way we can code this in R ?</p>