title: extracting data from matlab file in R
body: <p>It's the first time I deal with Matlab files in R.</p>
  
  <p>The rationale for saving the information in a .mat file type was the length. (the dataset contains 226518 rows). We were worried to excel (and then a csv) would not take them.</p>
  
  <p>I can upload the original file if necessary</p>
  
  <p>So I have my Matlab file and when I open it in Matlab all good.
  There are various arrays and the one I want is called "allPoints"
  I can open it and then see that it contains values around 0.something.</p>
  
  <p>Screenshot:</p>
  
  <p><a href="https://i.stack.imgur.com/mFs6S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mFs6S.png" alt="Screenshot"></a></p>
  
  <p>What I want to do is to extract the same data in R.</p>
  
  <pre><code>      library(R.matlab)
        df &lt;- readMat("170314_Col_HD_R20_339-381um_DNNhalf_PPP1-EN_CellWallThickness.mat")
        str(df)
  </code></pre>
  
  <p>And here I get stuck. How do I pull out "allPoints" from it. $ does not seem to work.</p>
  
  <p>I will have multiple files that need to be put together in one single dataframe in R so the plan is to mutate each extracted df generating a new column for sample and then I will rbind together.</p>
  
  <p>Could anybody help?</p>