Rank: 346 based on 188 downloads (last 30 days) and 4 files submitted
photo

Robert Henson

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Robert View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
09 Aug 2007 Published MATLAB Files Heat Maps with Text Heat maps with numeric values overlayed Author: Robert Henson annotation, heatmap, numeric values, customization, graphics, plot annotation 18 4
  • 5.0
5.0 | 3 ratings
09 Aug 2006 Published MATLAB Files Accessing Mass spectrometry data using the Proteome Commons IO Library Shows how to load many types of mass spectrometry data. Author: Robert Henson mass spectrometry pro..., biotech, pharmaceutical, proteome commons, functions 1 3
  • 5.0
5.0 | 1 rating
07 Sep 2005 Published MATLAB Files Flow Cytometry Data Reader and Visualization Flow Cytometry Data Reader and Visualization Example Author: Robert Henson biotech, pharmaceutical, flow, cytometry, fcs, data reader 24 1
  • 4.0
4.0 | 1 rating
08 Jun 2004 Published MATLAB Files MATLAB R-link Functions for calling the statistical package R from within MATLAB. Author: Robert Henson statistics, probability, r cran 145 58
  • 4.57143
4.6 | 28 ratings
Comments and Ratings on Robert's Files View all
Updated File Comment by Comments Rating
08 Feb 2012 MATLAB R-link Functions for calling the statistical package R from within MATLAB. Author: Robert Henson Dubuis, Sébastien

Hi,

I had the same problem as others. My command was:

a=[1,1,1,2,2,2,3,3,4,4];
b=[1,1,1,2,2,2,3,3,4,4];
putRdata('a',a)
putRdata('b',b);
evalR('c<-fisher.test(a,b)$p.value')

And the result was the error:
'Problem evaluating command c<-fisher.test(a,b)$p.value.
Invoke Error, Dispatch Exception: Object is static; operation not allowed'

My solution was to 'write' down the command to add the data. Then it worked perfectly.
In my case:

X=num2str(a);
X=strrep(X,' ',',');
eval(['evalR(''a<-c(' X ')'')'])
X2=num2str(b);
X2=strrep(X2,' ',',');
eval(['evalR(''b<-c(' X2')'')'])
evalR('c<-fisher.test(a,b)$p.value')

I thought this (ugly) trick might help some people here.

Sébastien

10 Jan 2012 MATLAB R-link Functions for calling the statistical package R from within MATLAB. Author: Robert Henson Johnson, Graham

Seems to me that only functions which don't require a data.frame type object work with this link. Eg, if I want to set up a regression, then project it over new data using the 'predict' function in R - no joy (I just get the fitted values over the original data).

Also, fitting a regression with categorical variables - no joy.

Can anyone confirm for me whether this is right please? I'd be very happy if I was wrong and I just need to change something in my set up to achieve the above.
G

14 Dec 2011 MATLAB R-link Functions for calling the statistical package R from within MATLAB. Author: Robert Henson Darryn

I'm assuming you wouldn't be able to publish a Matlab program (using the compiler) using the R link?

08 Dec 2011 MATLAB R-link Functions for calling the statistical package R from within MATLAB. Author: Robert Henson L'Esperance, Chris

I am among those who report the error:

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

I am able to run this:

openR
a = 1:10;
putRdata('a',a)
b = evalR('a^2')
evalR('b <- a^2');
evalR('c <- b + 1');
c = getRdata('c')

without error, yet, upon running a function from the package known as `seacarb' I get the aforementioned error. I don't suppose anyone has made progress with this?

Chris

16 Nov 2011 MATLAB R-link Functions for calling the statistical package R from within MATLAB. Author: Robert Henson Anto

I also can't read out "vocano" in matlab using volcano = getRdata('volcano'). Any idea?

Top Tags Applied by Robert
biotech, pharmaceutical, statistics, annotation, bioinformatics
Files Tagged by Robert View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
09 Aug 2007 Published MATLAB Files Heat Maps with Text Heat maps with numeric values overlayed Author: Robert Henson annotation, heatmap, numeric values, customization, graphics, plot annotation 18 4
  • 5.0
5.0 | 3 ratings
09 Aug 2006 Published MATLAB Files Accessing Mass spectrometry data using the Proteome Commons IO Library Shows how to load many types of mass spectrometry data. Author: Robert Henson mass spectrometry pro..., biotech, pharmaceutical, proteome commons, functions 1 3
  • 5.0
5.0 | 1 rating
07 Sep 2005 Published MATLAB Files Flow Cytometry Data Reader and Visualization Flow Cytometry Data Reader and Visualization Example Author: Robert Henson biotech, pharmaceutical, flow, cytometry, fcs, data reader 24 1
  • 4.0
4.0 | 1 rating
08 Jun 2004 Published MATLAB Files MATLAB R-link Functions for calling the statistical package R from within MATLAB. Author: Robert Henson statistics, probability, r cran 145 58
  • 4.57143
4.6 | 28 ratings

Contact us at files@mathworks.com