[R] readMat - how to retrieve the variables

From: Eduardo M. A. M.Mendes <emammendes_at_gmail.com>
Date: Sun, 13 Mar 2011 18:07:55 -0300


I have a matlab MAT file that contains one single variable: a. The structure of a is as follows:

a.river1.flow (flow values)
a.river1.date_flow (date)
a.river1.precip (precipitation values)

I have used readMat to load the variable a in R, however I have no idea how readMat translates a. I managed to get some values out of data=readMat("matfile.mat")

data$a[,,1]$river1[,,1]$flow -> Why do I need [,,1]? Why not data$a$river1$flow?

Many thanks


R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Sun 13 Mar 2011 - 21:12:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 13 Mar 2011 - 22:00:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive