title: Find max number from row then divide and subtract previous number
body: <p>For example:</p>
  <pre><code>v1 &lt;- c(10, 11, 20, 30, 40, 50, 30, 25, 20, 10)
  </code></pre>
  <p>In <code>v1</code> <code>50</code> is a max number, I need the below result</p>
  <pre><code>result &lt;- c(0, 0, 0, 0, 0, (50/40)-1, (30/50)-1, (25/30)-1, (20/25)-1, (10/20)-1)
  </code></pre>
  <p>The final array will look like this</p>
  <pre><code>c(0, 0, 0, 0, 0, 0.25, -0.4, -0.16, -0.2, -0.5)
  </code></pre>