base R as function is weird

Issue #1 resolved
Richard Cotton repo owner created an issue

For example

as(1:5, "double")
#not the same as as.double(1:5)

as(1:5, "data.frame")
#fails!

Write as2 that uses as.someclass(x) when it exists and as(x, "someclass") otherwise.

Make coerce_to call it.

See also is2.

Comments (1)

  1. Log in to comment