On 1/21/10 5:23 PM, Massimo Di Stefano wrote: (...) > > In [50]: elev = rsort('my...@data$inputmap', decreasing=True) > > In [51]: r_sorted = rsort('my...@data$elevation.dem', decreasing=True) > > In [52]: p_seq = rseq(1,rlength(r_sorted)) > > In [53]: x = rdiv(p_seq,length(r_sorted)) > > In [54]: x = rdiv( ( rdiff( x, rmin(x) ) ) , ( rdiff( rmax(x) , rmin(x) > ) ) ) > > In [55]: y = rdiv( ( rdiff( r_sorted, rmin(r_sorted) ) ) , ( rdiff( > rmax(r_sorted) , rmin(r_sorted) ) ) )
The error message hints at where the problem is: In Python, 'm...@data$elevation.dem' is just a string, and not R code to be evaluated (until you explicitly decide to evaluate it). > Errore in .Primitive("-")("my...@data$elevation.dem", > "my...@data$elevation.dem") : > argomento non numerico trasformato in operatore binario > ------------------------------------------------------------ > Traceback (most recent call last): > File "<ipython console>", line 1, in <module> > File "build/bdist.macosx-10.6-universal/egg/rpy2/robjects/__init__.py", > line 423, in __call__ > RRuntimeError: Errore in .Primitive("-")("my...@data$elevation.dem", > "my...@data$elevation.dem") : > argomento non numerico trasformato in operatore binario > > ################################################ > ################################################ > > > thanks for any hints !!! > > regards, > Massimo. > > > > ------------------------------------------------------------------------------ > Throughout its 18-year history, RSA Conference consistently attracts the > world's best and brightest in the field, creating opportunities for Conference > attendees to learn about information security's most important issues through > interactions with peers, luminaries and emerging and established companies. > http://p.sf.net/sfu/rsaconf-dev2dev > > > > _______________________________________________ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list