title: How to write and read matrix from file without column names?
body: <p>A matrix Aexample is:</p>
  
  <pre><code>Aexample
  [,1] [,2] [,3] [,4]
  [1,]  0.6  0.4 0.00  0.0
  [2,]  0.4  0.4 0.00  0.0
  [3,]  0.4  0.4 0.00  0.0
  [4,]  0.0  0.0 0.40  0.4
  [5,]  0.0  0.0 0.34  0.4
  [6,]  0.0  0.0 0.40  0.4
  </code></pre>
  
  <p>It is saved to a file by </p>
  
  <blockquote>
    <p>write.table (Aexample, file = "~/R/Aexample", row.names = FALSE, col.names = FALSE);</p>
  </blockquote>
  
  <p>And then I read by</p>
  
  <blockquote>
    <p>Aexample = as.matrix(read.table(file="~/R/Aexample"));</p>
  </blockquote>
  
  <p>But the result always has <strong>V1  V2   V3  V4</strong> column names that I don't want:</p>
  
  <pre><code>    V1  V2   V3  V4
  [1,]  0.6  0.4 0.00  0.0
  [2,]  0.4  0.4 0.00  0.0
  [3,]  0.4  0.4 0.00  0.0
  [4,]  0.0  0.0 0.40  0.4
  [5,]  0.0  0.0 0.34  0.4
  [6,]  0.0  0.0 0.40  0.4
  </code></pre>
  
  <p>What's the simplest way to save the Aexample matrix and then read from file and get the original Aexample matrix? (Not to read to aa = as.matrix(read.table(file="~/R/Aexample")) and then create Aexample from aa with many lines of code)</p>