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 ______________________________________________ R-help@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.