title: read.table imports text file as list, how to import it as a dataframe?
body: <p>I have some data in a text file, with columns v1, v2, v3, and v4. v1 contains alphanumeric data, while v2, v3, and v4 are numeric in nature.</p>
  <p>I use the following command to read the data in R:</p>
  <pre><code>x &lt;- read.table(&quot;file_name.txt&quot;, header = TRUE, stringsAsFactors = FALSE)
  </code></pre>
  <p>it imports the data, but I want it as a data frame, when I check the type using typeof(x), returns &quot;list&quot;.</p>
  <p>How to get this data into a data frame?</p>