faq-error-incompatible-attributes: FAQ - Error/Warning: Some attributes are incompatible

Description Implementing coercion methods


This error occurs when vec_ptype2() or vec_cast() are supplied vectors of the same classes with different attributes. In this case, vctrs doesn't know how to combine the inputs.

To fix this error, the maintainer of the class should implement self-to-self coercion methods for vec_ptype2() and vec_cast().

Implementing coercion methods

vctrs documentation built on April 29, 2021, 5:08 p.m.