Skip to content
Prev 13003 / 63424 Next

AS_NUMERIC and as.numeric - Could someone explain?

AS_NUMERIC in C more closely corresponds to as.double() in R

All that as.numeric() in R does is assure that the result is of a 
numeric mode.  It does not coerce integer variables to doubles.

Check, for example,
str(as.numeric(1:100))
Daniel Hoppe wrote: