mtfrm {base} | R Documentation |
A generic auxiliary function to transform objects for matching.
mtfrm(x)
x |
an R object |
Matching via match
will use mtfrm
to transform
internally classed objects (see is.object
) to a vector
representation appropriate for matching. The default method performs
as.character
if this preserves the length.
Ideally, methods for mtfrm
should ensure that comparisons of
same-classed objects via match
are consistent with those
employed by methods for duplicated
/unique
and ==
/!=
(where applicable).
A vector of the same length as x
.