mtfrm {base} | R Documentation |
Auxiliary Function for Matching
Description
Transform objects for matching via match()
, think
“match form” -> "mtfrm"
.
base provides the S3 generic and a default
plus
"POSIXct"
and "POSIXlt"
methods.
Usage
mtfrm(x)
Arguments
x |
an R object |
Details
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).
Value
A vector of the same length as x
.
[Package base version 4.4.1 Index]