title: How can i remove the first x number of characters of a column name from 200+ columns with each column being not the same number of characters
body: <p>How can I remove a specific number of characters from a column name from 200+ column names for example: "Q1: GOING OUT?" and "Q5: STATE, PROVINCE, COUNTY, ETC" I just want to remove the "Q1: " and the "Q5: "I have looked around but haven't been able to find one where I don't have to manually rename them manually. Are there any functions or ways to use it through <code>tidyverse</code>? I have only been starting with R for 2 months.</p>
  
  <p>I don't really have anything to show. I have considered using for loops and possibly using <code>gsub</code> or <code>case_when</code>, but don't really understand how to properly use them.</p>
  
  <pre><code>#probably not correctly written but tried to do it anyways
  
  for ( x in x(0:length) and _:(length(CandyData)-1){
    front -&gt; substring(0:3)
    back -&gt; substring(4:length(CandyData))
    print &lt;- back
  }
  </code></pre>
  
  <p>I don't really have any errors because I haven't been able to make it work properly.</p>