Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What to use instead of the as.real?

Tags:

r

I've start improving some old R code and find that next functions are deprecated:

  • real creates a double precision vector of the specified length. Each element of the vector is equal to 0.
  • as.real attempts to coerce its argument to be of double type.
  • is.real returns TRUE or FALSE depending on whether its argument is of double type or not.

And what to use instead?

like image 963
m0nhawk Avatar asked Oct 18 '13 14:10

m0nhawk


1 Answers

Wow, that's pretty old code. I think you'll be fine with double, as.double, and is.double.

like image 87
Harlan Avatar answered Oct 14 '22 07:10

Harlan