title: Problems with column names in R
body: <p>I am new to R. I am trying to use the "write.csv" command to write a csv file in R. Unfortunately, when I do this, the resulting data frame produces colnames with a prefix X in it eventhough the file already has a column name.</p>
  
  <p>It produces, X_name1 ,X_name2</p>
  
  <p>Please kindly tell me your suggestions</p>
  
  <p>I have added an example code similar to my data.</p>
  
  <pre><code>a&lt;- c("1","2")
  b &lt;- c("3","4")
  df &lt;- rbind(a,b)
  df &lt;- as.data.frame(df)
  names(df) &lt;- c("11_a","12_b")
  write.csv(df,"mydf.csv")
  a &lt;- read.csv("mydf.csv")
  a
  
  #Result
     X X11_a X12_b
  1 a     1     2
  2 b     3     4
  </code></pre>
  
  <p>All I need is to have only "11_a" and "12_b" as column names. But it incudes prefix X also. </p>