This makes sense because it is never a lossy cast. Going from <importance_weights> -> <integer> has more of a chance to be lossy, so I don't feel comfortable adding that (if you REALLY need it you can go through double first).
This also allows users of weights to be able to call as.double() on the weights no matter what type they are to begin with, which is nice for consistency
This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
Closes #193
This makes sense because it is never a lossy cast. Going from
<importance_weights>
-><integer>
has more of a chance to be lossy, so I don't feel comfortable adding that (if you REALLY need it you can go through double first).This also allows users of weights to be able to call
as.double()
on the weights no matter what type they are to begin with, which is nice for consistency