Matlab plugin and Rstudio packages

6 ビュー (過去 30 日間)
ali salarian
ali salarian 2020 年 12 月 20 日
編集済み: Ive J 2020 年 12 月 20 日
Hi, i'm interested in knowing whether if Rstudio packages can be converted into matlab pugins ?
thanks

採用された回答

Ive J
Ive J 2020 年 12 月 20 日
編集済み: Ive J 2020 年 12 月 20 日
There are some equivalent R functions in MATLAB (e.g. here). But there is no tool that can automatically and perfectly convert a complete R package executable in MATLAB. There are interfaces as far as I know which allow you to call MATLAB from R or the other way around (I haven't found any of them flawless).
In my opinion, the best practice is to use them separately. But if you are designing a pipeline in MATLAB and you need to run part of your analysis with some R packages, you can write proper R functions and call them within MATLAB, for instance:
system('path\to\R.exe CMD BATCH myRcode.r') % for windows
You may also find this link useful:
  1 件のコメント
ali salarian
ali salarian 2020 年 12 月 20 日
thanks for your help

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by