title: Comparing column names of different files in R
body: <p>I have many files in R. I want to compare the col names of each file with a base_file. If all the column names of a particular file matching with the base_file column names print("No Mismatch"). Else report the column name which is not matching</p>
  
  <pre><code>base_file &lt;- data.frame(col1,col2,col3,col4,col5)
  
  file_2 &lt;- data.frame(col1,col2,col3,col4,col5)      
  ## Output expected : No- Mistach
  
  file_3 &lt;- data.frame(col1,col15,col12,col4,col5)  
  ##  Output expected : No col3, col3. Extra columns col12,col15
  </code></pre>
  
  <p>I want a function for the above like this :</p>
  
  <pre><code>fun &lt;- function(base_file,file_2){ }
  </code></pre>