I am looking for an example of how we could use vctrs::vec_rbind as a replacement for dplyr::bind_rows to allow conversion of non-matching column types.
There is some deep mojo to coercion that I don't have visibility into after reading the docs and the github material. It seems that it should be possible, but it feels like it requires some rolling your own constructors and can't be don't directly in vec_rbind. If @romain or @lionel see this, they will be able to provide better guidance than I ever could.
It would be nice if something like ptype could be added to bind_rows since I assume using vec_rbind is going to require me to refactor code significantly.
Character types are not coercible with numeric types by design. You need to explicitly parse them into numbers in a preliminary step. Same for date types, they are not coercible with numeric ones because they represent a different kind of data.
On the other hand character types are coercible to each other, for instance factor to character.