Reach for your Matlab data with R
2016-07-31 11:52
375 查看
If you work with both Matlab and R, the R.matlab package maintained by Henrik Bengtsson on
CRAN helps you to connect the two environments by allowing you to read and write Matlab's MAT data file format from R (even if you don't have Matlab installed). This allows you to pass data between Matlab and R via the filesystem.
But if you want to build an integrated R/Matlab workflow, and call Matlab functions directly from R, there is also the reach
packageby Christoph Schmidt (available on Github). The reach package works with a Matlab installation behind the scenes, by writing scripts for batch execution by Matlab, and exchanging data via files. (This is a simpler integration than the beta Java-based
connectivity also provided by R.matlab, but Christoph claims this interface is more robust.) This is all transparent to the user though, who with just R functions is able to:
call and execute Matlab functions seamlessly as if they were R functions and return their results directly into the R session
convert .mat files into .RData files, and even batch-convert all .mat files contained within a folder
launch Matlab scripts, and import the results back into R
execute Matlab functions and print their results at the command line
exchange list and matrix objects between the two systems
I don't have access to Matlab, so I wasn't able to try R.matlab or the "reach" packagage myself. But if you try it out, let us know how it works.
github (schmidtchristoph): reach
CRAN helps you to connect the two environments by allowing you to read and write Matlab's MAT data file format from R (even if you don't have Matlab installed). This allows you to pass data between Matlab and R via the filesystem.
But if you want to build an integrated R/Matlab workflow, and call Matlab functions directly from R, there is also the reach
packageby Christoph Schmidt (available on Github). The reach package works with a Matlab installation behind the scenes, by writing scripts for batch execution by Matlab, and exchanging data via files. (This is a simpler integration than the beta Java-based
connectivity also provided by R.matlab, but Christoph claims this interface is more robust.) This is all transparent to the user though, who with just R functions is able to:
call and execute Matlab functions seamlessly as if they were R functions and return their results directly into the R session
convert .mat files into .RData files, and even batch-convert all .mat files contained within a folder
launch Matlab scripts, and import the results back into R
execute Matlab functions and print their results at the command line
exchange list and matrix objects between the two systems
I don't have access to Matlab, so I wasn't able to try R.matlab or the "reach" packagage myself. But if you try it out, let us know how it works.
github (schmidtchristoph): reach
相关文章推荐
- Implement a Data Access Layer for Your App with ADO.NET
- LinkageError之loader (instance of xxx) previously initiated loading for a different type with name "lib/MyData"
- Get Started With Continuous Integration For Your .NET (C#) Projects - Test Your Project
- A for loop javascript event dynamically binding with customized data as paramete passed in test
- 转贴:Backups with Bacula: A cross-platform system to archive your data
- 电子书下载:Microsoft PowerPivot for Excel 2010: Give Your Data Meaning
- Get Started With Continuous Integration For Your .NET (C#) Projects - Build Your Project
- Failover Connections for Data Guard Error with ORA-1033 [ID 461874.1]
- Android: Simplified source code for parsing and working with XML data and web services in Android
- Failover Connections for Data Guard Error with ORA-1033 [ID 461874.1]
- Shooting Digital: Pro Tips for Taking Great Pictures with Your Digital Camera
- Rapid Portlet Development with WebSphere Portlet Factory: Step-by-Step Guide for Building Your Own P
- Protecting Your Data Integrity with Transactions in ADO.NET
- org.apache.jasper.JasperException: jsp:getProperty for bean with name 'data'. N
- Build Data-Driven Web Services with Updated XML Support for SQL Server 2000
- Using ROW_NUMBER() to paginate your data with SQL Server 2005 and ASP.NET
- Learning Data Binding with Windows Forms 2.0(1)-The Quest for Type Safety
- How to save data in ASCII format in ADS for use in MATLAB
- Best Practices for Working with Texture Data
- CWaveFile -- a Class for Working with and Representing Data from WAVEs