vctrs
vctrs copied to clipboard
Should table objects be coercible to numerics?
vctrs::vec_ptype_common(table(rpois(10, 1)), 1, 2)
#> Error:
#> ! Can't combine `..1` <table[1d]> and `..2` <double>.
Created on 2022-09-23 with reprex v2.0.2
Feels like it might be too much to expect that folks know what this special type of object is and how to handle it.