title: Create a monthly adjustable program in R
body: <p>I have the following code:</p>
  <pre><code>DATAFRAMEINPUT &lt;- read.csv2(&quot;R:/2018_01_F2.csv&quot;, header=TRUE)
  DATAFRAMEINPUT &lt;- read.csv2(&quot;R:/2018_02_F2.csv&quot;, header=TRUE)
  DATAFRAMEINPUT &lt;- read.csv2(&quot;R:/2018_03_F2.csv&quot;, header=TRUE)
  </code></pre>
  <p>Instead of 2018_01 I want n-36, i.e., the 36th previous month.</p>
  <p>Instead of 2018_02 I want n-35, i.e., the 35th previous month.</p>
  <p>Instead of 2018_03 I want n-34, i.e., the 34th previous month.</p>
  <p>I want to define a base month on the code and then count backwards 36 months.</p>
  <p>I want to create a monthly routine program.</p>
  <p>Can you help me writing the proper code?</p>