title: How to assign column names to a table
body: <p>I am working with the following <a href="https://github.com/108michael/ms_thesis/commit/ca258bc684c3a6f8ade13769590439ad1e8387d7" rel="nofollow noreferrer">data</a> in Rstudio. I am trying to assign column names to the data. I have employed the following commands:</p>
  
  <pre><code>nlsdata -&gt; read.table("C:/Users/perdue/Desktop/Adv.MicroEconometrics/HA 3/data/nls.dat", 
                         header = FALSE, dec = ".")
  </code></pre>
  
  <p>This command returns as a first row column names 'v1 v2 v3... v52'. When I follow with</p>
  
  <pre><code>colnames(nlsdata)
  </code></pre>
  
  <p>I get a list of names: <code>v1, v2, ..., v52</code>. Then</p>
  
  <pre><code>col.names(nlsdata) &lt;- c("inputid","nearc2","nearc4","nearc4a","nearc4b","ed76","ed66","age76",
                          "daded","nodaded","momed","nomomed","weight","momdad14","sinmom14",
                          "step14","reg661","reg662","reg663","reg664","reg665","reg666","reg667",
                          "reg668","reg669","south66","work76","work78","lwage76","lwage78",
                          "famed","black","smsa76r","smsa78r","reg76r","reg78r","reg80r",
                          "smsa66r","wage76","wage78","wage80","noint78","enroll76","enroll78",
                          "enroll80","kww","iq","marsta76","marsta78","marsta80","libcrd14") 
  
  where newname[i] is the ith column name of dataframe nlsdata`
  </code></pre>
  
  <blockquote>
  <pre><code>Error: unexpected symbol in ""south66","work76","work78","lwage76","lwage78","famed","black","smsa76r","smsa78r","reg76r","reg78r","reg80r","smsa66r","wage76","wage78","wage80", "noint78","enroll76","enroll78","enroll80","
  </code></pre>
  </blockquote>
  
  <p>The error messages seem to suggest a syntax error. I have loooked &ndash; more than once &ndash; and can't find/recognize one.</p>