title: R: Adding multiple new columns in R
body: <p><em>Edited</em></p>
  
  <p>I am creating a new data frame based on existing data. </p>
  
  <p><img src="https://i.stack.imgur.com/CJDqk.png" alt="df1"></p>
  
  <p><img src="https://i.stack.imgur.com/YIukR.png" alt="enter image description here"></p>
  
  <p>Right now, this is what I am doing (I know this is crude and naive):</p>
  
  <pre><code>df2$Month_Start_Date &lt;- df1$Month_Start_Date
  df2$Month1 &lt;- as.numeric(df1$Active_M1*100/df1$Signed_up)
  df2$Month2 &lt;- as.numeric(df1$Active_M2*100/df1$Signed_up)
  df2$Month3 &lt;- as.numeric(df1$Active_M3*100/df1$Signed_up) and so on...
  </code></pre>
  
  <p>I have 36 columns in my actual data( in df1) and right now I am repeating the above mentioned calculations for 36 columns to create df2, is there an easier way to have all the 36 columns added in minimum lines of code? Right now I am having 36 lines of code to add 36 columns.</p>
  
  <p>Thanks in Advance</p>