[R] Coercing in R and in C (R-Extensions)

Oliver oliver at first.in-berlin.de
Tue May 31 20:47:12 CEST 2011


Duncan Murdoch <murdoch.duncan <at> gmail.com> writes:

> 
> On 11-05-31 1:55 PM, Oliver wrote:
[...]
> >
> > Maybe someone can explain me the problem in other words?
> >
> > What does coercion in R do, and what does coercion in C (not) do?
> >
> > (And what would be needed in C to get the same effect as in R?)
> 
> Check for a class, and dispatch on it if there is one.  Almost certainly 
> you'd want to do this by building up an R expression and evaluating it.
[...]

Can you give a simple C-Code example / snippet,
so that I can see what I would need to do, when trying to do that on the C-side?


Ciao,
   Oliver



More information about the R-help mailing list