Andrea
Andrea

Reputation: 894

Convert .mat file to R-compliant file

I am in the need of converting a MATLAB .mat file in something that can be read from R. Do you know some tools that can be used to perform such operation?

The .mat file contains cell matrices and struct matrices.

Upvotes: 3

Views: 3320

Answers (3)

Clement J.
Clement J.

Reputation: 3032

There is also a package named R.matlab that I didn't try but that seems available for Windows.

Upvotes: 3

IRTFM
IRTFM

Reputation: 263342

The R.matlab package provides a readMat function.

Upvotes: 3

Clement J.
Clement J.

Reputation: 3032

In recent releases, ".mat" files in Matlab are saved using the HDF5 format that you can read in R with the package hdf5

Upvotes: 6

Related Questions