vctrs icon indicating copy to clipboard operation
vctrs copied to clipboard

Should table objects be coercible to numerics?

Open hadley opened this issue 1 year ago • 0 comments

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.

hadley avatar Sep 23 '22 21:09 hadley