The function gap_as_state changes the contrast of an phyDat object to
treat as its own state. Internally phyDat are stored similar to a
factor objects and only the contrast matrix and some attributes
change.
Usage
gap_as_state(obj, gap = "-", ambiguous = "?")
gap_as_ambiguous(obj, gap = "-")
has_gap_state(obj)
Value
The functions return an object of class phyDat.
Arguments
obj
An object of class phyDat.
gap
a character which codes for the gaps (default is "-").