Running R from inside Matlab on Mac OSX

버전 1.0.0.0 (1.46 KB) 작성자: Graeme Cumming
One line of code (plus a textfile with R commands) gets you running R from inside Matlab on your Mac
다운로드 수: 705
업데이트 날짜: 2010/10/11

라이선스 보기

R has loads of great functions and can be freely installed, but Matlab does a number of things better. For Matlab users the solution is simple: if you don't have time to reprogram the routine, run R code from inside Matlab. You need a working version of R installed on your machine. Then save your R commands into a text file (through Word or other text editor), access R through the unix interface, and execute the file as a batch command. Save outputs (matrices, stats, etc) as files from within your R code and pick them up again from inside Matlab. The Matlab code is so simple that I haven't packaged it as a function - but it took me a while to figure out, so it may be useful to others.

인용 양식

Graeme Cumming (2024). Running R from inside Matlab on Mac OSX (https://www.mathworks.com/matlabcentral/fileexchange/29001-running-r-from-inside-matlab-on-mac-osx), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 R Language에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0