[R] driving R from MATLAB

From: Moshe Hoshen <moshe_ho_at_rosettagenomics.com>
Date: Mon, 17 Mar 2008 10:18:06 +0200


I am trying to use R functions from my MATLAB code using a DCOM server. I am working under Windows XP.

While I mange to run basic functions and run them using scripts, when I try a more complicated set of functions I fail.

I am trying to perform survival analysis, using Surv

Surv(recruTime,recur)  

Surv creates a somewhat complex output and I get the response

Problem evaluating command source(
"s:\\R&D\\matlab\\repository\\personalfolders\\moshe\\colon\\rcut.r").

Invoke Error, Dispatch Exception: Object is static; operation not allowed  

I tried to get around this by using a script, but it doesn't work. I do not actually want to transfer the Surv output back to MATLAB, but rather allow R to plot some graphs, actually Schoenfeld residuals, which works fine within R, but I can't work out if R can be instructed to perform this analysis by MATLAB

Does anyone know how?

Thanks!

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Mon 17 Mar 2008 - 08:21:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 17 Mar 2008 - 09:30:23 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive