How to read .data file into R
<p>I have tried to load the data from <a href="http://archive.ics.uci.edu/ml/machine-learning-databases/heart-disease/hungarian.data" rel="nofollow">http://archive.ics.uci.edu/ml/machine-learning-databases/heart-disease/hungarian.data</a> into R using the following piece of code</p>

<pre><code>hData &lt;- read.table(file.choose(), sep = "\t", dec = ",", fileEncoding = "UTF-16")
</code></pre>

<p>but its not populating the exact data. The data has 76 attributes in it and the details about it are given here: <a href="http://archive.ics.uci.edu/ml/datasets/Heart+Disease" rel="nofollow">http://archive.ics.uci.edu/ml/datasets/Heart+Disease</a>.</p>

<p>Can someone tell me what am I doing incorrect?</p>