Hello, in "Writing R Extensions" I found the following stuff:
"Note that these coercion functions are not the same as calling as.numeric (and so on) in R code, as they do not dispatch on the class of the object. Thus it is normally preferable to do the coercion in the calling R code." ( Writing R Extensions, 2011-04-13, page 100 ) What is meant by this? 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?) Thanks, 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.