title: R Loop for creating a decreasing array
body: <p>I'm a R Beginner and would like to create a function, which creates a decreasing array from point x to 0, taking into account a step size z.</p>
  <p>The function should start with x=20000 and should decrease in z=2000 steps 10 times till 0.</p>
  <p>The reasoning behind I would like to illustrate the payback of a credit.</p>
  <pre><code>x &lt;- 20000
  y &lt;- 10
  z &lt;- 2000
  
  array = [20000, 19000, 18000, 17000, 16000, 15000, 14000, 13000, 12000, 11000, 10000, 9000, 8000, 7000, 6000, 5000, 4000, 3000, 2000, 1000, 0] 
  
  </code></pre>