mtfrm {base} | R Documentation |
Transform objects for matching via match()
, think
“match form” -> "mtfrm"
.
base provides the S3 generic and a default
plus
"POSIXct"
and "POSIXlt"
methods.
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
.