Define a conformance rule to match a factor with specific levels.
Source:R/type-coerce.R
type.enum.Rd
Define a conformance rule to match a factor with specific levels.
Arguments
- ...
the levels (no quotes, backticks if required)
- .drop
should levels present in the data and not specified cause an error (FALSE the default) or be silently dropped to NA values (TRUE).
- .ordered
must the factor be ordered