Skip to content

[Rcpp-devel] Fwd: How can I avoid calls to coerceToReal

1 message · Romain Francois

#
What is the type of df[i] ?

i.e. what does it says:

SEXP tmp = df[i] ;
Rprintf( "TYPEOF(tmp)=%d", TYPEOF(tmp) ) ;

If this is anything but REALSXP (i.e. 14), then you have to coerce the 
data to bne able to use it as a NumericVector.

Romain

Le 30/04/13 17:19, Pratibha Rana a ?crit :