I know that similar questions were asked before, but I can’t find a way to convert the coefficient to a numeric one without losing any of the decimal places.
Here is a quick example:
My vector is as follows:
january$pickup_latitude[1] = 40.751231
after execution:
as.numeric(as.character(january$pickup_latitude))
result:
january$pickup_latitude[1] = 40.75123
Is there a way to keep all decimal places, even if each case has a different length?
source
share