c*****m 发帖数: 1160 | 1 【 以下文字转载自 Programming 讨论区 】
发信人: chatham (聊天火腿), 信区: Programming
标 题: Matlab + R: R-Link, RMatlab, or others?
发信站: BBS 未名空间站 (Thu May 16 11:34:59 2013, 美东)
要在Matlab里面call R,找到的第一个选项是R-Link
mathworks.com/matlabcentral/fileexchange/5051
它没有 x64版本,也不能在Linux上用,所以在我的两个系统上都没法装。
第二个选项是 RMatlab
有点旧。修改一些code之后编译,总算装上了,但是只能在matlab 命令行上跑 (
matlab -nojvm);在 Matlab GUI上面一 initializeR就死掉。
有用过的么?有什么好建议?
谢谢。 | Z**0 发帖数: 1119 | 2 建议用matlab的system call直接run R。 | M*P 发帖数: 6456 | 3 或者用rscript
【在 c*****m 的大作中提到】 : 【 以下文字转载自 Programming 讨论区 】 : 发信人: chatham (聊天火腿), 信区: Programming : 标 题: Matlab + R: R-Link, RMatlab, or others? : 发信站: BBS 未名空间站 (Thu May 16 11:34:59 2013, 美东) : 要在Matlab里面call R,找到的第一个选项是R-Link : mathworks.com/matlabcentral/fileexchange/5051 : 它没有 x64版本,也不能在Linux上用,所以在我的两个系统上都没法装。 : 第二个选项是 RMatlab : 有点旧。修改一些code之后编译,总算装上了,但是只能在matlab 命令行上跑 ( : matlab -nojvm);在 Matlab GUI上面一 initializeR就死掉。
| c*****m 发帖数: 1160 | 4 finally, found this one: http://rwiki.sciviews.org/doku.php?id=tips:callingr:matlab
Matlab File Exchange file saveR and install the R package R.matlab.
From matlab, save the variable in disk, call R (which will read, calculate,
and write result), then load the R result into Matlab. | w********m 发帖数: 1137 | |
|