For to_fct(), the error message says "All values of location must be present in levels or to_na."
When those are fixed values, the user doesn't know what levels and to_na are referring to.
Instead give the list of acceptable values (potentially pointing out the ones that will be treated as NA).
For
to_fct()
, the error message says "All values oflocation
must be present inlevels
orto_na
."When those are fixed values, the user doesn't know what
levels
andto_na
are referring to. Instead give the list of acceptable values (potentially pointing out the ones that will be treated as NA).